(window.webpackJsonp = window.webpackJsonp || []).push([
    [16], {
        IM4f: function(l, n, e) {
            "use strict";
            e.d(n, "a", (function() { return i })), e("f/iK");
            var t = e("v3f1");
            class i { constructor(l, n) { this.elementRef = l, this.pmsSvc = n, this.removeIfAllowed = !1 } ngAfterViewInit() { this.pmsSvc.loaded$.pipe(Object(t.a)(this)).subscribe(l => { l && (!this.pmsSvc.isAllowed(this.permissionCode) && !this.removeIfAllowed || this.pmsSvc.isAllowed(this.permissionCode) && this.removeIfAllowed) && this.elementRef.nativeElement.remove() }) } ngOnDestroy() {} }
        },
        issU: function(l, n, e) {
            "use strict";
            e.r(n);
            var t = e("8Y7J"),
                i = e("/wrd");
            class u { constructor(l, n) { l.registerResolver(n) } }
            var a = e("EdU/"),
                o = e("QfCi"),
                r = e("Ed4d"),
                s = e("/Yna"),
                c = e("JRKe"),
                d = e("8WaK"),
                b = e("CghO"),
                m = e("Sq/J"),
                p = e("pMnS"),
                g = e("cjxp"),
                h = e("4Ne6"),
                f = e("8qel"),
                v = e("hgTt"),
                C = e("Hm0w"),
                M = e("ByoF"),
                R = e("8mdx"),
                w = e("KdeT"),
                k = e("YHkh"),
                y = e("fE5m"),
                T = e("Pram"),
                S = e("ehP1"),
                x = e("pC+G"),
                z = e("v/J6"),
                F = e("JzE0"),
                I = e("1+nf"),
                O = e("SVse"),
                P = e("5VGP"),
                N = e("iInd"),
                H = e("IM4f"),
                D = e("f/iK"),
                E = e("+MiG"),
                _ = e("DQmg"),
                $ = e("5GAg"),
                L = e("s7LF"),
                V = e("7FkJ"),
                Q = e("jTf7"),
                A = e("Irb3"),
                G = e("GaVp"),
                j = e("POq0"),
                U = e("omvX"),
                Y = e("W4B1"),
                W = e("ILS9"),
                q = e("eCGT"),
                B = e("/HVE"),
                J = e("Rgb0"),
                K = e("BlGb"),
                X = e("HNKG"),
                Z = e("vI2W"),
                ll = e("1U0z"),
                nl = e("sZMX"),
                el = e("WRPN"),
                tl = e("uUd2"),
                il = e("phDe"),
                ul = e("QQfA"),
                al = e("/L1H"),
                ol = e("ExdV"),
                rl = e("xyAM"),
                sl = e("Brn/"),
                cl = e("IheW");
            let dl = (() => { class l { constructor(l) { this.http = l } getFullMedicalRecord(l) { return this.http.get(`/MedicalRecord/full/${l}`, Object(sl.a)()) } getMedicalRecordSummaryByPatientId(l) { return this.http.get(`/MedicalRecordSummary/${l}`, Object(sl.a)()) } getMedicalRecordReport(l) { return this.http.post("/report/patient-medicalrecord/with-task", l, Object(sl.a)({ isV3: !0 })) } getMedicalRecordReportReview(l) { return this.http.post("/report/patient-medicalrecord/review-mode", l, Object(sl.a)({ isV3: !0 })) } rejectMedicalRecord(l, n) { return this.http.put("/common-task/medical-record/operate", { medicalRecordId: l, action: "reject", reason: n || "" }, Object(sl.a)()) } acceptMedicalRecord(l, n) { return this.http.put("/common-task/medical-record/operate", { medicalRecordId: l, action: "accept", reason: n || "" }, Object(sl.a)()) } ignoreMedicalRecordTask(l, n) { return this.http.post("/commontask/appt-medical-record/ignore", { notes: n, taskId: l }, Object(sl.a)()) } exportMedicalReportList(l) { return this.http.post("/report/patient-medicalrecord/with-task/export", l, Object(sl.a)({ isV3: !0 })) } getPendingTaskCounts(l) { return this.http.get("/common-task/pending-handle-task-count", Object(sl.a)({ params: l })) } } return l.ngInjectableDef = t.Vb({ factory: function() { return new l(t.Wb(cl.c)) }, token: l, providedIn: "root" }), l })();
            var bl = e("LvDl"),
                ml = e("LRne"),
                pl = e("1uah"),
                gl = e("vkgz"),
                hl = e("pzb0");
            class fl { transform(l) { return { chiefComplaintHistory: "\u4e3b\u8bc9\u53ca\u75c5\u53f2", chiefComplaint: "\u4e3b\u8bc9", history: "\u73b0\u75c5\u53f2", pastHistory: "\u65e2\u5f80\u53f2", oralCheckRadiologyCheck: "\u53e3\u8154\u68c0\u67e5", oralCheck: "\u53e3\u8154\u68c0\u67e5", radiologyCheck: "\u8f85\u52a9\u68c0\u67e5", associatedImage: "\u76f8\u5173\u5f71\u50cf", diagnoseTreatmentPlan: "\u8bca\u65ad\u4e0e\u6cbb\u7597\u8ba1\u5212", picture: "\u56fe\u7247", treatmentAdvice: "\u6cbb\u7597\u5efa\u8bae", treatmentPlan: "\u6cbb\u7597\u8ba1\u5212", diagnose: "\u8bca\u65ad", cureAdvice: "\u5904\u7f6e\u4e0e\u533b\u5631", cure: "\u5904\u7f6e", advice: "\u533b\u5631", other: "\u5176\u4ed6", archive: "\u6807\u7b7e", comment: "\u5907\u6ce8" } [l] || l } }
            var vl = e("1Np0"),
                Cl = e("kXvj");
            class Ml {
                constructor(l, n, e) { this.cacheSvc = l, this.officeOptionSvc = n, this.systemConfigUtil = e, this.fieldsValue = [], this.initialized = !1, this.emrTemplateFieldName = new fl } get fields() { return this.fieldsValue } init() { return this.initialized ? Object(ml.a)(!0) : Object(pl.a)(this.initOfficeOption(), this.initEmrSetting()) } initOfficeOption() { return this.officeOptionSvc.getOfficeOptions(["IsEmrCustomTemplateEnabled", "IsMedicalRecordPaginationPrintEnabled", "MedicalRecordPrintConfig"]).pipe(Object(gl.a)(l => { this.isShowCustomBtn = l[0], this.isEmrCustomTemplateEnabled = l[0], this.isMedicalRecordPaginationPrintEnabled = l[1], this.medicalRecordPrintConfig = l[2] })) } initEmrSetting() { return Object(pl.a)(this.systemConfigUtil.getConfigValue(this.systemConfigUtil.configKeys.AllowEditToothFDI), this.systemConfigUtil.getConfigValue(this.systemConfigUtil.configKeys.AllowToothFDI), this.systemConfigUtil.getConfigValue(this.systemConfigUtil.configKeys.IsEnableEMRLittleToothPrint), this.systemConfigUtil.getConfigValue(this.systemConfigUtil.configKeys.IsAloneSaveOralCheckSymptom)).pipe(Object(gl.a)(l => { this.allowEditTooth = l[0], this.allowToothFDI = l[1], this.allowLittleToothPrint = l[2], this.isAloneSaveOralCheckSymptom = l[3] })) } getEmrLayoutTemplateConfig(l) {
                    l && (!this.customizeFieldsMap && l.fieldList && (this.customizeFieldsMap = {}, l.fieldList.forEach(l => { this.customizeFieldsMap[l.fieldCode] || (this.customizeFieldsMap[l.fieldCode] = l) })), this.cacheSvc.medicalRecordLayoutTemplates.load().subscribe(n => {
                        if (n && n.length > 0) {
                            const e = bl.find(n, n => n.templateCode === l.layoutTemplateCode);
                            e && this.buildDisplayFields(e.rootFields, l)
                        }
                    }))
                }
                buildDisplayFields(l, n) {
                    if (!l || 0 === l.length) return;
                    this.fieldsValue = [];
                    const e = bl.sortBy(l, l => l.seqNum);
                    bl.forEach(e, l => {
                        l.level = 0;
                        const e = this.buildDisplayEmrField(l, n);
                        e && e.isShow && this.fieldsValue.push(e)
                    })
                }
                buildDisplayEmrField(l, n) {
                    let e, t;
                    switch (this.customizeFieldsMap && this.customizeFieldsMap[l.fieldCode] && (e = this.customizeFieldsMap[l.fieldCode]), e && (t = e.picture || e.pictures ? e.picture || e.pictures : e.fieldValue, l.isShow = !!t), l.inputType) {
                        case hl.l.Group:
                            return this.buildDisplayGroupField(l, n, "group");
                        case hl.l.RadioButton:
                            return { fieldValue: t, isShow: l.isShow, fieldName: l.fieldName, fieldType: "radioButton", children: [], level: l.level };
                        case hl.l.CheckBox:
                            return { fieldValue: t, isShow: l.isShow, fieldName: l.fieldName, fieldType: "checkbox", children: [], level: l.level };
                        case hl.l.InputText:
                            return { fieldValue: t, isShow: l.isShow, fieldName: l.fieldName ? `${l.fieldName}\uff1a` : null, fieldType: "inputText", children: [], level: l.level };
                        case hl.l.TextArea:
                            return { fieldValue: t, isShow: l.isShow, fieldName: l.fieldName ? `${l.fieldName}\uff1a` : null, fieldType: "textArea", children: [], level: l.level };
                        case hl.l.NumericUpDown:
                            return l.isShow = !!t || 0 === t, { fieldValue: t, isShow: l.isShow, fieldName: l.fieldName ? `${l.fieldName}\uff1a` : null, fieldType: "numericUpDown", children: [], level: l.level };
                        case hl.l.PictureUploader:
                            return { fieldValue: t, isShow: l.isShow, fieldName: l.fieldName, fieldType: "pictureUploader", children: [], level: l.level };
                        case hl.l.NamedPictureUploader:
                            return { fieldValue: t, isShow: l.isShow, fieldName: l.fieldName, fieldType: "namedPictureUploader", children: [], level: l.level };
                        case hl.l.MedicalRecord_ChiefComplaint:
                            return l.isShow = n.chiefComplaint, { isShow: l.isShow, fieldValue: n.chiefComplaint, fieldName: `${this.emrTemplateFieldName.transform(l.fieldName)}\uff1a`, fieldType: "medicalRecord_ChiefComplaint", children: [], level: l.level };
                        case hl.l.MedicalRecord_History:
                            return l.isShow = n.history, { isShow: l.isShow, fieldValue: n.history, fieldName: "\u73b0\u75c5\u53f2\uff1a", fieldType: "medicalRecord_History", children: [], level: l.level };
                        case hl.l.MedicalRecord_PastHistory:
                            return l.isShow = n.pastHistory, { isShow: l.isShow, fieldValue: n.pastHistory, fieldName: "\u65e2\u5f80\u53f2\uff1a", fieldType: "medicalRecord_PastHistory", children: [], level: l.level };
                        case hl.l.MedicalRecord_OralCheckRecord:
                            return l.isShow = n.oralCheckRecordList, { isShow: l.isShow, fieldValue: n.oralCheckRecordList, fieldName: `${this.isEmrCustomTemplateEnabled?"\u68c0\u67e5":"\u53e3\u8154\u68c0\u67e5"}\uff1a`, fieldType: "medicalRecord_OralCheckRecord", children: [], level: l.level, allowEditTooth: this.allowEditTooth, allowToothFdi: this.allowToothFDI };
                        case hl.l.MedicalRecord_Imaging:
                            return l.isShow = n.associatedImageList && n.associatedImageList.length > 0, { fieldValue: n.associatedImageList, isShow: l.isShow, fieldName: "\u76f8\u5173\u5f71\u50cf\uff1a", fieldType: "medicalRecord_Imaging", children: [], level: l.level };
                        case hl.l.MedicalRecord_RadiologyCheckRecord:
                            return l.isShow = n.radiologyCheckRecordList && n.radiologyCheckRecordList.length > 0, { fieldValue: n.radiologyCheckRecordList, isShow: l.isShow, fieldName: `${this.isEmrCustomTemplateEnabled?"X\u7ebf\u68c0\u67e5\u793a":"\u8f85\u52a9\u68c0\u67e5"}\uff1a`, fieldType: "medicalRecord_RadiologyCheckRecord", isEmrCustomTemplateEnabled: this.isEmrCustomTemplateEnabled, allowEditTooth: this.allowEditTooth, allowToothFdi: this.allowToothFDI, children: [], level: l.level };
                        case hl.l.MedicalRecord_DiagnoseRecord:
                            return l.isShow = n.diagnoseRecordList && n.diagnoseRecordList.length > 0, { fieldValue: n.diagnoseRecordList, isShow: l.isShow, fieldName: "\u8bca\u65ad\uff1a", fieldType: "medicalRecord_DiagnoseRecord", isEmrCustomTemplateEnabled: this.isEmrCustomTemplateEnabled, allowEditTooth: this.allowEditTooth, allowToothFdi: this.allowToothFDI, children: [], level: l.level };
                        case hl.l.MedicalRecord_TreatmentAdvice:
                            return l.isShow = n.treatmentAdviceList && n.treatmentAdviceList.length > 0, { fieldValue: n.treatmentAdviceList, isShow: l.isShow, fieldName: "\u6cbb\u7597\u5efa\u8bae\uff1a", fieldType: "medicalRecord_TreatmentAdvice", allowEditTooth: this.allowEditTooth, allowToothFdi: this.allowToothFDI, children: [], level: l.level };
                        case hl.l.MedicalRecord_TreatmentPlan:
                            return l.isShow = n.treatmentPlanList && n.treatmentPlanList.length > 0, { fieldValue: n.treatmentPlanList, isShow: l.isShow, fieldName: `${this.isEmrCustomTemplateEnabled?"\u6cbb\u7597\u65b9\u6848":"\u6cbb\u7597\u8ba1\u5212"}\uff1a`, fieldType: "medicalRecord_TreatmentPlan", isEmrCustomTemplateEnabled: this.isEmrCustomTemplateEnabled, allowEditTooth: this.allowEditTooth, allowToothFdi: this.allowToothFDI, children: [], level: l.level };
                        case hl.l.MedicalRecord_CureRecord:
                            return l.isShow = n.cureRecordList && n.cureRecordList.length > 0, { fieldValue: n.cureRecordList, isShow: l.isShow, fieldName: `${this.isEmrCustomTemplateEnabled?"\u5904\u7406":"\u5904\u7f6e"}\uff1a`, fieldType: "medicalRecord_CureRecord", isEmrCustomTemplateEnabled: this.isEmrCustomTemplateEnabled, allowEditTooth: this.allowEditTooth, allowToothFdi: this.allowToothFDI, children: [], level: l.level };
                        case hl.l.MedicalRecord_Advice:
                            return l.isShow = !!n.advice, { fieldValue: n.advice, isShow: l.isShow, fieldName: "\u533b\u5631\uff1a", fieldType: "medicalRecord_Advice", children: [], level: l.level };
                        case hl.l.MedicalRecord_Comment:
                            return l.isShow = !!n.comment, { fieldValue: n.comment, isShow: l.isShow, fieldName: "\u5907\u6ce8\uff1a", fieldType: "medicalRecord_Comment", children: [], level: l.level };
                        default:
                            return null
                    }
                }
                buildDisplayGroupField(l, n, e) {
                    const t = [];
                    if (l.isShow = !1, l.subFields && l.subFields.length > 0) {
                        const e = bl.sortBy(l.subFields, l => l.seqNum);
                        bl.forEach(e, e => {
                            e.level = l.level + 1;
                            const i = this.buildDisplayEmrField(e, n);
                            e.isShow && (l.isShow = !0), i && t.push(i)
                        })
                    }
                    return l.isShow ? { fieldType: e, fieldValue: null, fieldName: l.fieldName, isShow: l.isShow, level: l.level, children: t } : null
                }
            }
            var Rl = e("yqmU");
            class wl { constructor(l, n, e) { this.emrTemplateDisplaySvc = l, this.medicalRecordSvc = n, this.elementRef = e } ngOnInit() { this.loadEmr() } ngOnChanges(l) { l.medicalRecordId && l.medicalRecordId.currentValue && this.loadEmr() } print() { Object(Rl.b)(this.elementRef.nativeElement, "", "", !0) } loadEmr() { this.emrTemplateDisplaySvc.init().subscribe(() => { this.medicalRecordSvc.getFullMedicalRecord(this.medicalRecordId).subscribe(l => { l && this.emrTemplateDisplaySvc.getEmrLayoutTemplateConfig(l) }) }) } }
            var kl = e("qcBj"),
                yl = e("hztc"),
                Tl = e("wd/R"),
                Sl = function(l) { return l[l.UNHANDLED = 0] = "UNHANDLED", l[l.ACCEPTED = 1] = "ACCEPTED", l[l.REJECTED = 2] = "REJECTED", l }({});
            class xl {
                constructor(l, n, e, t, i) { this.drawerRef = l, this.emrSvc = n, this.msgSvc = e, this.operationLogSvc = t, this.accountSvc = i, this.readOnly = !1, this.notes = "", this.reviewResult = Sl.UNHANDLED } get nextEmrAvailable() { return this.nextMedicalRecordReports.length > 0 } ngOnInit() { this.readOnly && (this.getLastReviewLog(), this.notes = this.medicalRecordReport.notes || "-"), this.medicalRecordReport && (this.emrTemplatePatientInfo = { patientName: this.medicalRecordReport.patientName, privateId: this.medicalRecordReport.privateId, doctorName: this.medicalRecordReport.doctorName, department: this.medicalRecordReport.department, recordUpdatedTime: this.medicalRecordReport.recordUpdatedTime }) } reject() { this.notes.trim() ? this.emrSvc.rejectMedicalRecord(this.medicalRecordReport.id, this.notes).subscribe(() => { this.reviewResult = Sl.REJECTED, this.lastReviewLog = { recordCreatedTime: Tl().format("YYYY-MM-DD HH:mm"), recordCreatedName: this.accountSvc.userName, notes: this.notes, operationType: "\u6253\u56de" } }) : this.msgSvc.error("\u8bf7\u586b\u5199\u70b9\u8bc4\u610f\u89c1") } accept() { this.emrSvc.acceptMedicalRecord(this.medicalRecordReport.id, this.notes).subscribe(() => { this.reviewResult = Sl.ACCEPTED, this.lastReviewLog = { recordCreatedTime: Tl().format("YYYY-MM-DD HH:mm"), recordCreatedName: this.accountSvc.userName, notes: this.notes, operationType: "\u901a\u8fc7" } }) } print() { this.emrDisplay.print() } nextEmr() { this.medicalRecordReport = this.nextMedicalRecordReports.shift(), this.getLastReviewLog(), this.reviewResult = Sl.UNHANDLED, this.notes = "" } getLastReviewLog() {
                    this.operationLogSvc.getOperationLog(this.medicalRecordReport.taskId, "MedicalRecordQC").subscribe(l => {
                        if (this.lastReviewLog = bl.find(l, l => "\u6253\u56de" === l.operationType || "\u901a\u8fc7" === l.operationType), this.lastReviewLog) {
                            const l = bl.find(this.lastReviewLog.changeFields.changeFields, l => "\u5907\u6ce8" === l.field);
                            this.lastReviewLog.notes = l.newValue
                        }
                    })
                }
            }
            var zl = e("8llH"),
                Fl = e("qruQ"),
                Il = e("rQR/"),
                Ol = e("SxV6"),
                Pl = e("2Vo4"),
                Nl = e("DA1V"),
                Hl = e("JGEi");
            class Dl { constructor(l, n) { this.modalRef = l, this.msgSvc = n } ngOnInit() {} cancel() { this.modalRef.close() } save() { this.notes ? this.modalRef.close(this.notes) : this.msgSvc.error("\u8bf7\u586b\u5199\u5ffd\u7565\u539f\u56e0") } } class El { constructor(l) { this.logSvc = l } ngOnInit() { this.logList$ = this.logSvc.getOperationLog(this.id, this.type) } ngAfterViewInit() { setTimeout(() => { this.tableColDefs = [{ field: "recordCreatedTime", headerName: "\u64cd\u4f5c\u65f6\u95f4", cellRenderer: l => (new zl.a).transform(l.data.recordCreatedTime, "ymdhm"), width: 150 }, { field: "recordCreatedName", headerName: "\u64cd\u4f5c\u4eba", width: 80 }, { field: "operationType", headerName: "\u64cd\u4f5c\u7c7b\u578b", width: 80 }, { field: "patientName", headerName: "\u64cd\u4f5c\u60a3\u8005", width: 120 }, { field: "changeFields", headerName: "\u75c5\u5386\u72b6\u6001\u53d8\u66f4", cellRendererFramework: Fl.a, cellRendererParams: { ngTemplate: this.contentTemp }, autoHeight: !0, flex: 1 }] }) } } class _l {
                constructor(l) { this.logSvc = l } ngOnInit() { this.initData() } ngAfterViewInit() { setTimeout(() => { this.tableColDefs = [{ field: "recordCreatedTime", headerName: "\u64cd\u4f5c\u65f6\u95f4", cellRenderer: l => (new zl.a).transform(l.data.recordCreatedTime, "ymdhm"), width: 150 }, { field: "emrStateChange", headerName: "\u75c5\u5386\u72b6\u6001\u53d8\u66f4", cellRendererFramework: Fl.a, cellRendererParams: { ngTemplate: this.contentTemp }, width: 150 }, { field: "restTime", headerName: "\u5269\u4f59\u65f6\u95f4", width: 120 }, { field: "recordCreatedName", headerName: "\u64cd\u4f5c\u4eba", width: 80 }, { field: "operationType", headerName: "\u64cd\u4f5c\u7c7b\u578b", width: 80 }, { field: "note", headerName: "\u5907\u6ce8", autoHeight: !0, flex: 1, tooltipField: "note" }] }) } initData() {
                    this.logSvc.getOperationLog(this.id, this.type).subscribe(l => {
                        this.logList = l && 0 !== l.length ? l.map(l => {
                            const n = l.changeFields.changeFields,
                                e = n.find(l => "\u5269\u4f59\u65f6\u95f4" === l.field),
                                t = n.find(l => "\u5907\u6ce8" === l.field),
                                i = n.find(l => "\u75c5\u5386\u72b6\u6001\u53d8\u66f4" === l.field);
                            return Object.assign({}, l, { emrStateChange: i, note: t && t.newValue, restTime: e && e.newValue })
                        }) : null
                    })
                }
            }
            var $l = e("v3f1"),
                Ll = e("wSdp"),
                Vl = e("Vm3S"),
                Ql = e("Wurm");
            class Al {
                constructor(l, n, e, t, i, u, a, o, r, s, c, d, b, m) { this.drawerShelfService = l, this.medicalRecordSvc = n, this.emrSvc = e, this.officeSvc = t, this.cacheSvc = i, this.aresPortal = u, this.userOptionSvc = a, this.modalSvc = o, this.msgSvc = r, this.activatedRoute = s, this.accountSvc = c, this.downloadUtil = d, this.loadingSvc = b, this.patientUtil = m, this.isMyList = !1, this.isReviewMode = !1, this.isDirectReviewEnabled = !1, this.statusTabs = [{ value: -1, text: "\u5168\u90e8" }, { value: 1, text: "\u672a\u5199" }, { value: 4, text: "\u5f85\u8bc4\u5ba1" }, { value: 2, text: "\u5f85\u6574\u6539" }, { value: 8, text: "\u5df2\u901a\u8fc7" }, { value: 16, text: "\u5df2\u5ffd\u7565" }], this.activeTabIndex = 0, this.dateTypeOptions = [{ value: 0, text: "\u6309\u75c5\u5386\u521b\u5efa\u65f6\u95f4" }, { value: 1, text: "\u6309\u9884\u7ea6\u65f6\u95f4" }], this.filtering = { timeRange: [Tl().add(-1, "M").toDate(), Tl().toDate()], dateType: 1, dateTypeDisabled: !1, statusOption: -1, doctorId: -999, assistantId: -999, department: "\u672a\u6307\u5b9a\u79d1\u5ba4", layoutTemplateCode: "\u5168\u90e8\u75c5\u5386\u7c7b\u578b", emrTag: "\u5168\u90e8\u75c5\u5386\u6807\u7b7e", pageIndex: 1, pageSize: 20, isMoreSearchVisible: !1, reviewCount: 100, medicalRecordIds: [], sortField: "", sortRule: "" }, this.redDots = {}, this.showRandomTotalCount = !1, this.showGrid = !1, this.formatDateTime = (new zl.a).transform, this.initialized$ = new Pl.a(!1), this.formatReviewCountInput = l => `\u62bd\u6837  ${l}  \u4efd` } ngOnInit() { this.calcMaxHeight(), this.activatedRoute.data.pipe(Object($l.a)(this)).subscribe(l => { l && l.isMyList && (this.filtering.doctorId = this.accountSvc.providerId, this.isMyList = !0, this.filtering.timeRange = [Tl().toDate(), Tl().toDate()]), Object(pl.a)(this.loadEmrSetting(), this.loadDepartments(), this.loadEmrTypes(), this.loadEmrTags(), this.loadUserOption(), this.loadAssistants()).subscribe(() => { this.initialized$.next(!0) }) }) } ngAfterViewInit() { setTimeout(() => { this.getColDefs(), this.initialized$.asObservable().pipe(Object(Ol.a)(l => !!l)).subscribe(() => { this.search() }) }) } ngOnDestroy() {} openEmrDetailDrawer(l, n = !1, e = !1) {
                    const t = bl.findIndex(this.emrPage.items, n => n.id === l.id),
                        i = this.emrPage.items.slice(t + 1);
                    this.drawerShelfService.create({ nzTitle: n ? "\u67e5\u770b\u75c5\u5386" : "\u8bc4\u4ef7\u75c5\u5386", nzContent: xl, nzMaskClosable: !0, nzBodyStyle: { padding: 0 }, nzContentParams: { readOnly: n, nextMedicalRecordReports: e ? [] : i, medicalRecordReport: l, isDataMaskingEnabled: this.isDataMaskingEnabled && this.isReviewMode && "\u5f85\u6574\u6539" !== l.taskStatusStr && "\u5df2\u901a\u8fc7" !== l.taskStatusStr }, nzWidth: 1080 }).afterClose.subscribe(l => { this.search() })
                }
                onStatusChange(l) { this.filtering.statusOption = this.isReviewMode && -1 === l.value ? this.isScrambled ? null : 14 : l.value, setTimeout(() => { "\u672a\u5199" === l.text || "\u5df2\u5ffd\u7565" === l.text ? (this.filtering.dateType = 1, this.filtering.dateTypeDisabled = !0) : this.filtering.dateTypeDisabled = !1, this.search(!0) }) } search(l = !1, n = !1) {
                    l && (this.filtering.pageIndex = 1), n && (this.filtering.medicalRecordIds = [], this.showRandomTotalCount = !0);
                    const e = this.getCriteria();
                    (this.isReviewMode && this.isScrambled ? this.emrSvc.getMedicalRecordReportReview(e) : this.emrSvc.getMedicalRecordReport(e)).subscribe(l => { this.emrPage = l, this.isReviewMode ? (this.filtering.medicalRecordIds = this.isScrambled ? e.medicalRecordIds && e.medicalRecordIds.length > 0 ? e.medicalRecordIds : bl.map(l.items, "id") : [], this.saveUserOption(), this.redDots = {}) : (this.onCalendarYearMonthChange(e.startDate), this.onCalendarYearMonthChange(e.endDate)) }, l => { this.msgSvc.error(l instanceof cl.f && l && l.error && "AresBusinessException" === l.error.name && l.error.message ? l.error.message : "\u67e5\u8be2\u5931\u8d25") }, () => { this.showGrid || setTimeout(() => { this.loadingSvc.show(), setTimeout(() => { this.showGrid = !0, setTimeout(() => this.loadingSvc.hide()) }, 1e3) }) })
                }
                enterReviewMode() { this.isReviewMode = !0, this.activeTabIndex = 1, this.filtering.statusOption = 4, this.userOptionFiltering && (this.filtering = bl.cloneDeep(this.userOptionFiltering)), this.calcMaxHeight(), this.getColDefs(), this.search(!0) } quitReviewMode() { this.isReviewMode = !1, this.activeTabIndex = 0, this.filtering.statusOption = -1, this.calcMaxHeight(), this.getColDefs(), this.search(!0) } toggleMoreSearch() { this.filtering.isMoreSearchVisible = !this.filtering.isMoreSearchVisible, this.calcMaxHeight() } onPageIndexChange(l) { this.filtering.pageIndex = l, this.search() } onPageSizeChange(l) { this.filtering.pageIndex = 1, this.filtering.pageSize = l, this.search() } showEmrLog(l) { this.modalSvc.create({ nzTitle: "\u67e5\u770b\u75c5\u5386\u65e5\u5fd7", nzContent: El, nzComponentParams: { type: "MedicalRecord", id: l.id }, nzWidth: 800, nzFooter: null }) } showReviewLog(l) { this.modalSvc.create({ nzTitle: "\u67e5\u770b\u8d28\u8bc4\u65e5\u5fd7", nzContent: _l, nzComponentParams: { type: "MedicalRecordQC", id: l.taskId }, nzWidth: 800, nzFooter: null }) } goToEmrList(l) { this.aresPortal.navigateAres("patientgeneralMedicalRecords.patientEmr.list", { patientId: l.patientId }) } goToNewEmr(l) { this.aresPortal.navigateAres("patientgeneralMedicalRecords.patientEmr.edit", { patientId: l.patientId }) } goToEditEmr(l) { this.aresPortal.navigateAres("patientgeneralMedicalRecords.patientEmr.edit", { patientId: l.patientId, medicalRecordId: l.id }) } ignoreEmr(l) { this.modalSvc.create({ nzTitle: "\u586b\u5199\u539f\u56e0", nzContent: Dl, nzSize: "small", nzFooter: null, nzMaskClosable: !1 }).afterClose.subscribe(n => { n && this.emrSvc.ignoreMedicalRecordTask(l.taskId, n).subscribe(() => { this.search() }) }) } openPatientModal(l) { this.aresPortal.postBusiness({ name: "ares.business.openPatientDetailModal", data: { dataItem: { patientId: l.patientId } } }) } gotoPatientCenter(l) { this.patientUtil.gotoPatientCenterById(l, "patientgeneralMedicalRecords.patientEmr.list") } loadEmrSetting() { return this.officeSvc.getOfficeEmrSetting().pipe(Object(gl.a)(l => { this.emrSetting = l, this.isDataMaskingEnabled = l.medicalRecordQcConfig && l.medicalRecordQcConfig.isDataMaskingEnabled, this.isScrambled = l.medicalRecordQcConfig && l.medicalRecordQcConfig.isScrambled, this.isDirectReviewEnabled = !this.isDataMaskingEnabled && !this.isScrambled })) } getColDefs() {
                    const l = [{ headerName: "\u75c5\u5386\u72b6\u6001", field: "taskStatusStr", width: 100, cellRenderer: l => "\u5df2\u8d85\u65f6" === l.data.taskStatusStr ? '<span class="hb-text-danger">\u5df2\u8d85\u65f6</span>' : l.data.taskStatusStr }, { headerName: "\u8ddd\u79bb\u622a\u6b62\u65f6\u95f4", field: "remainingTime", width: 120 }, { headerName: "\u75c5\u5386\u53f7", field: "privateId", width: 150 }, { headerName: "\u60a3\u8005", field: "patientName", width: 150, cellRendererFramework: Fl.a, cellRendererParams: { ngTemplate: this.patientNameTmpl } }, { headerName: "\u6027\u522b", field: "sexStr", width: 80 }, { headerName: "\u5e74\u9f84", field: "age", width: 80 }, { headerName: "\u5c31\u8bca\u65f6\u95f4", field: "startTime", cellRenderer: l => this.formatDateTime(l.data.startTime, "ymdhm"), width: 150, sortable: !this.isReviewMode }, { headerName: "\u533b\u751f\u79d1\u5ba4", field: "department", width: 150, cellRenderer: l => "\u672a\u5199" === l.data.taskStatusStr || "\u5df2\u5ffd\u7565" === l.data.taskStatusStr ? l.data.appointmentDepartment : l.data.department }, { headerName: "\u533b\u751f", field: "doctorName", cellRenderer: l => "\u672a\u5199" === l.data.taskStatusStr || "\u5df2\u5ffd\u7565" === l.data.taskStatusStr ? l.data.appointmentDoctorName : l.data.doctorName, width: 150 }, { headerName: "\u52a9\u624b", field: "nurseName", width: 150 }, { headerName: "\u521b\u5efa\u65f6\u95f4", field: "recordCreatedTime", cellRenderer: l => "\u672a\u5199" !== l.data.taskStatusStr && "\u5df2\u5ffd\u7565" !== l.data.taskStatusStr ? this.formatDateTime(l.data.recordCreatedTime, "ymdhm") : "", width: 150, sortable: !this.isReviewMode }, { headerName: "\u4fee\u6539\u65f6\u95f4", field: "recordUpdatedTime", cellRenderer: l => this.formatDateTime(l.data.recordUpdatedTime, "ymdhm"), width: 150, sortable: !this.isReviewMode }, { headerName: "\u75c5\u5386\u7c7b\u578b", field: "layoutTemplateName", width: 150 }, { headerName: "\u75c5\u5386\u6807\u7b7e", field: "archive", width: 150 }, { headerName: "\u64cd\u4f5c", pinned: "right", cellRendererFramework: Fl.a, cellRendererParams: { ngTemplate: this.actionTmpl } }];
                    this.colDefs = this.isReviewMode && this.isDataMaskingEnabled ? bl.filter(l, l => ["\u75c5\u5386\u53f7", "\u60a3\u8005", "\u6027\u522b", "\u5e74\u9f84", "\u533b\u751f\u79d1\u5ba4", "\u533b\u751f", "\u52a9\u624b"].indexOf(l.headerName) < 0) : bl.clone(l)
                }
                loadDepartments() { return this.cacheSvc.department.loadActive().pipe(Object(gl.a)(l => { this.departments = [{ id: -1, itemName: "\u672a\u6307\u5b9a\u79d1\u5ba4" }, ...l] })) } loadEmrTypes() { return this.cacheSvc.medicalRecordLayoutTemplates.load().pipe(Object(gl.a)(l => { this.emrTemplates = [{ templateName: "\u5168\u90e8\u75c5\u5386\u7c7b\u578b", templateCode: "\u5168\u90e8\u75c5\u5386\u7c7b\u578b" }, ...l] })) } loadEmrTags() { return this.cacheSvc.medicalRecordArchives.load().pipe(Object(gl.a)(l => { this.emrTags = ["\u5168\u90e8\u75c5\u5386\u6807\u7b7e", ...bl.map(l, l => l.itemName)] })) } getCriteria() { if (this.isReviewMode && this.isScrambled && this.filtering.medicalRecordIds.length > 0) { const l = { medicalRecordIds: this.filtering.medicalRecordIds, pageSize: this.filtering.reviewCount, pageIndex: 1 }; return this.filtering.statusOption > 0 && (l.statusOption = this.filtering.statusOption), l } const l = { startDate: Tl(this.filtering.timeRange[0]).format("YYYY-MM-DD"), endDate: Tl(this.filtering.timeRange[1]).clone().add(1, "d").format("YYYY-MM-DD"), dateType: this.filtering.dateType, pageIndex: this.filtering.pageIndex, pageSize: this.filtering.pageSize }; return this.filtering.statusOption > 0 && (l.statusOption = this.filtering.statusOption), this.filtering.doctorId > -1 && (l.doctorId = this.filtering.doctorId), this.filtering.assistantId > -1 && (l.nurseId = this.filtering.assistantId), this.isReviewMode && this.isScrambled && (l.pageSize = this.filtering.reviewCount), "\u5168\u90e8\u75c5\u5386\u7c7b\u578b" !== this.filtering.layoutTemplateCode && (l.layoutTemplateCode = this.filtering.layoutTemplateCode), "\u672a\u6307\u5b9a\u79d1\u5ba4" !== this.filtering.department && "\u5168\u90e8\u79d1\u5ba4" !== this.filtering.department && (l.department = this.filtering.department), "\u5168\u90e8\u75c5\u5386\u6807\u7b7e" !== this.filtering.emrTag && (l.archive = this.filtering.emrTag), this.isMyList ? l.statusOption = 3 : this.filtering.statusOption > -1 && (l.statusOption = this.filtering.statusOption), !this.isReviewMode && this.filtering.sortField && this.filtering.sortRule && (l.sortField = this.filtering.sortField, l.sortRule = this.filtering.sortRule), l } calcMaxHeight() { this.gridMaxHeight = window.innerHeight - 160 - (window.self === window.top ? 58 : 0) - (this.filtering.isMoreSearchVisible ? 40 : 0) + (this.isReviewMode && this.isScrambled ? 10 : 0) + (this.isMyList ? 32 : 0) } loadUserOption() {
                    return this.userOptionSvc.getUserOption(this.userOptionSvc.optionKeys.emrReviewListFilter).pipe(Object(gl.a)(l => {
                        if (l) {
                            let e;
                            if (bl.isString(l)) try { e = JSON.parse(l) } catch (n) {} else e = l;
                            e && (e.timeRange[0] = Tl(e.timeRange[0]).toDate(), e.timeRange[1] = Tl(e.timeRange[1]).toDate(), this.userOptionFiltering = e)
                        }
                    }))
                }
                saveUserOption() {
                    const l = bl.cloneDeep(this.filtering);
                    l.timeRange[0] = Tl(l.timeRange[0]).format("YYYY-MM-DD"), l.timeRange[1] = Tl(l.timeRange[1]).format("YYYY-MM-DD"), this.userOptionSvc.setUserOption(this.userOptionSvc.optionKeys.emrReviewListFilter, l).subscribe(() => { this.userOptionFiltering = l })
                }
                onSortChange(l) { l.length > 0 ? (this.filtering.sortField = l[0].colId, this.filtering.sortRule = l[0].sort) : (this.filtering.sortField = "", this.filtering.sortRule = ""), this.search() }
                export () {
                    const l = this.getCriteria(),
                        n = bl.chain(this.colDefs).filter(l => !!l.field).map(l => ({ field: l.field, title: l.headerName })).value();
                    this.emrSvc.exportMedicalReportList({ criteria: l, columns: n }).subscribe(l => { this.downloadUtil.downloadUrl(l) })
                }
                onCalendarYearMonthChange(l) {
                    if (!this.isMyList) return;
                    const n = Tl(l).startOf("M").format("YYYY-MM-DD"),
                        e = Tl(l).endOf("M").format("YYYY-MM-DD");
                    if (!bl.isUndefined(this.redDots[n])) return;
                    const t = { startDate: n, endDate: e };
                    this.filtering.doctorId > 0 && (t.doctorId = this.filtering.doctorId), this.emrSvc.getPendingTaskCounts(t).subscribe(l => { this.redDots[n] = !1, bl.each(l, l => { this.redDots[l.taskDate] = !!l.count }) })
                }
                onDateRangeChange() { this.onCalendarYearMonthChange(Tl(this.filtering.timeRange[0]).format("YYYY-MM-DD")), this.onCalendarYearMonthChange(Tl(this.filtering.timeRange[1]).format("YYYY-MM-DD")) } onReviewModeChange() { this.isReviewMode ? this.enterReviewMode() : this.quitReviewMode() } loadAssistants() { return Object(pl.a)(this.cacheSvc.nurse.loadActive(), this.cacheSvc.assistants.loadActive()).pipe(Object(gl.a)(l => { this.assistants = [{ id: -999, name: "\u672a\u6307\u5b9a\u52a9\u624b" }, ...l[0], ...l[1]] })) }
            }
            var Gl = e("iC8E"),
                jl = e("NFMk"),
                Ul = e("JXeA"),
                Yl = t.tb({
                    encapsulation: 0,
                    styles: [
                        [".tab-action[_ngcontent-%COMP%]{margin-top:-4px;margin-right:4px}.search-form[_ngcontent-%COMP%]{margin-bottom:8px}.search-form[_ngcontent-%COMP%]   .date-type-select[_ngcontent-%COMP%]{vertical-align:middle;width:150px}.more-search[_ngcontent-%COMP%]{margin-bottom:8px}.more-search[_ngcontent-%COMP%]   .search-item[_ngcontent-%COMP%]{margin-right:8px;width:150px;vertical-align:middle}.more-search[_ngcontent-%COMP%]   .review-count[_ngcontent-%COMP%]{display:inline-block}.more-search[_ngcontent-%COMP%]   .review-count[_ngcontent-%COMP%]   .ant-input-number[_ngcontent-%COMP%]{margin:0 8px}.action-link[_ngcontent-%COMP%]{display:inline-block;margin-right:8px}"]
                    ],
                    data: {}
                });

            function Wl(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 3, "nz-tab", [], null, [
                    [null, "nzSelect"]
                ], (function(l, n, e) { var t = !0; return "nzSelect" === n && (t = !1 !== l.component.onStatusChange(l.parent.context.$implicit) && t), t }), F.c, F.a)), t.ub(1, 704512, [
                    [3, 4]
                ], 2, I.b, [t.k, t.E], { nzTitle: [0, "nzTitle"] }, { nzSelect: "nzSelect" }), t.Nb(603979776, 4, { template: 0 }), t.Nb(603979776, 5, { linkDirective: 0 })], (function(l, n) { l(n, 1, 0, n.parent.context.$implicit.text) }), null)
            }

            function ql(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, Wl)), t.ub(2, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(0, null, null, 0))], (function(l, n) { l(n, 2, 0, !n.component.isReviewMode || "\u672a\u5199" !== n.context.$implicit.text && "\u5df2\u5ffd\u7565" !== n.context.$implicit.text) }), null) }

            function Bl(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 5, "nz-tabset", [
                    ["nzTabPosition", "top"],
                    ["nzType", "card"]
                ], null, null, null, F.d, F.b)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(2, 8110080, null, 1, I.e, [P.m, t.E, P.G, t.k, t.h, [2, N.n]], { nzTabBarExtraContent: [0, "nzTabBarExtraContent"], nzTabPosition: [1, "nzTabPosition"], nzType: [2, "nzType"], nzSelectedIndex: [3, "nzSelectedIndex"] }, null), t.Nb(603979776, 3, { listOfNzTabComponent: 1 }), (l()(), t.kb(16777216, null, null, 1, null, ql)), t.ub(5, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0, t.Hb(n.parent, 4), "top", "card", e.activeTabIndex), l(n, 5, 0, e.statusTabs)
                }), null)
            }

            function Jl(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 9, "div", [
                    ["class", "tab-action"],
                    ["uiPermission", "patientMedicalRecord.reject"]
                ], null, null, null, null, null)), t.ub(1, 4341760, null, 0, H.a, [t.k, D.a], { permissionCode: [0, "permissionCode"] }, null), (l()(), t.vb(2, 0, null, null, 5, "nz-switch", [], [
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"],
                    [null, "click"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "click" === n && (i = !1 !== t.Hb(l, 3).hostClick(e) && i), "ngModelChange" === n && (i = !1 !== (u.isReviewMode = e) && i), "ngModelChange" === n && (i = !1 !== u.onReviewModeChange() && i), i
                }), E.b, E.a)), t.ub(3, 4374528, null, 0, _.a, [P.m, t.h, $.a], null, null), t.Mb(1024, null, L.n, (function(l) { return [l] }), [_.a]), t.ub(5, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { model: [0, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(7, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null), (l()(), t.vb(8, 0, null, null, 1, "span", [
                    ["class", "hb-va-middle"]
                ], null, null, null, null, null)), (l()(), t.Pb(-1, null, ["\xa0\u8d28\u8bc4\u6a21\u5f0f"]))], (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, "patientMedicalRecord.reject"), l(n, 5, 0, e.isReviewMode)
                }), (function(l, n) { l(n, 2, 0, t.Hb(n, 7).ngClassUntouched, t.Hb(n, 7).ngClassTouched, t.Hb(n, 7).ngClassPristine, t.Hb(n, 7).ngClassDirty, t.Hb(n, 7).ngClassValid, t.Hb(n, 7).ngClassInvalid, t.Hb(n, 7).ngClassPending) }))
            }

            function Kl(l) {
                return t.Rb(0, [(l()(), t.kb(16777216, null, null, 1, null, Jl)), t.ub(1, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(0, null, null, 0))], (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, !e.isDirectReviewEnabled && !e.isMyList)
                }), null)
            }

            function Xl(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "nz-option", [], null, null, null, V.d, V.a)), t.ub(1, 573440, [
                    [6, 4]
                ], 0, Q.c, [], { nzLabel: [0, "nzLabel"], nzValue: [1, "nzValue"] }, null)], (function(l, n) { l(n, 1, 0, n.context.$implicit.text, n.context.$implicit.value) }), null)
            }

            function Zl(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 4, "button", [
                    ["nz-button", ""],
                    ["nzType", "primary"]
                ], [
                    [1, "nz-wave", 0]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.search(!0) && t), t }), A.c, A.a)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(2, 1818624, null, 1, G.a, [t.k, t.h, t.E, j.b, P.G, t.y, P.m, [2, P.i],
                    [2, U.a]
                ], { nzType: [0, "nzType"] }, null), t.Nb(603979776, 9, { listOfIconElement: 1 }), (l()(), t.Pb(-1, 0, [" \u67e5\u8be2 "]))], (function(l, n) { l(n, 2, 0, "primary") }), (function(l, n) { l(n, 0, 0, t.Hb(n, 2).nzWave) }))
            }

            function ln(l) {
                return t.Rb(0, [(l()(), t.vb(0, 16777216, null, null, 5, "button", [
                    ["nz-button", ""],
                    ["nz-tooltip", ""],
                    ["nzTooltipTitle", "\u6bcf\u6b21\u70b9\u51fb\u90fd\u5c06\u66f4\u65b0\u5f53\u524d\u75c5\u5386\u5217\u8868"],
                    ["nzType", "primary"]
                ], [
                    [1, "nz-wave", 0],
                    [2, "ant-tooltip-open", null]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.search(!0, !0) && t), t }), A.c, A.a)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(2, 1818624, null, 1, G.a, [t.k, t.h, t.E, j.b, P.G, t.y, P.m, [2, P.i],
                    [2, U.a]
                ], { nzType: [0, "nzType"] }, null), t.Nb(603979776, 10, { listOfIconElement: 1 }), t.ub(4, 4931584, null, 0, Y.e, [t.k, t.Q, t.j, t.E, [2, Y.c],
                    [8, null]
                ], { specificTitle: [0, "specificTitle"], directiveNameTitle: [1, "directiveNameTitle"] }, null), (l()(), t.Pb(-1, 0, [" \u62bd\u6837 "])), (l()(), t.kb(0, null, null, 0))], (function(l, n) { l(n, 2, 0, "primary"), l(n, 4, 0, "\u6bcf\u6b21\u70b9\u51fb\u90fd\u5c06\u66f4\u65b0\u5f53\u524d\u75c5\u5386\u5217\u8868", "") }), (function(l, n) { l(n, 0, 0, t.Hb(n, 2).nzWave, t.Hb(n, 4).isTooltipComponentVisible) }))
            }

            function nn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 5, "button", [
                    ["nz-button", ""],
                    ["nzType", "default"],
                    ["uiPermission", "patientCenter.emrSearch.export"]
                ], [
                    [1, "nz-wave", 0]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.export() && t), t }), A.c, A.a)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(2, 1818624, null, 1, G.a, [t.k, t.h, t.E, j.b, P.G, t.y, P.m, [2, P.i],
                    [2, U.a]
                ], { nzType: [0, "nzType"] }, null), t.Nb(603979776, 11, { listOfIconElement: 1 }), t.ub(4, 4341760, null, 0, H.a, [t.k, D.a], { permissionCode: [0, "permissionCode"] }, null), (l()(), t.Pb(-1, 0, ["\u5bfc\u51fa "]))], (function(l, n) { l(n, 2, 0, "default"), l(n, 4, 0, "patientCenter.emrSearch.export") }), (function(l, n) { l(n, 0, 0, t.Hb(n, 2).nzWave) }))
            }

            function en(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 7, "div", [
                    ["style", "display: inline-block; vertical-align: middle; margin-right: 8px;"]
                ], null, null, null, null, null)), (l()(), t.vb(1, 16777216, null, null, 6, "nz-input-number", [
                    ["nz-tooltip", ""],
                    ["nzTooltipTitle", "\u968f\u673a\u62bd\u6837\u65f6\uff0c\u75c5\u5386\u6700\u591a\u5c55\u793a\u4e00\u767e\u4efd\uff0c\u8d85\u51fa\u5219\u5c55\u793a\u524d\u4e00\u767e\u4efd\u75c5\u5386"],
                    ["style", "width: 120px;"]
                ], [
                    [2, "ant-input-number-focused", null],
                    [2, "ant-input-number-lg", null],
                    [2, "ant-input-number-sm", null],
                    [2, "ant-input-number-disabled", null],
                    [2, "ant-tooltip-open", null],
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"]
                ], (function(l, n, e) { var t = !0; return "ngModelChange" === n && (t = !1 !== (l.component.filtering.reviewCount = e) && t), t }), W.b, W.a)), t.ub(2, 4964352, null, 0, q.a, [t.k, t.E, t.h, $.a], { nzMin: [0, "nzMin"], nzMax: [1, "nzMax"], nzFormatter: [2, "nzFormatter"] }, null), t.ub(3, 4931584, null, 0, Y.e, [t.k, t.Q, t.j, t.E, [2, Y.c],
                    [8, null]
                ], { specificTitle: [0, "specificTitle"], directiveNameTitle: [1, "directiveNameTitle"] }, null), t.Mb(1024, null, L.n, (function(l) { return [l] }), [q.a]), t.ub(5, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { model: [0, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(7, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0, 1, 100, e.formatReviewCountInput), l(n, 3, 0, "\u968f\u673a\u62bd\u6837\u65f6\uff0c\u75c5\u5386\u6700\u591a\u5c55\u793a\u4e00\u767e\u4efd\uff0c\u8d85\u51fa\u5219\u5c55\u793a\u524d\u4e00\u767e\u4efd\u75c5\u5386", ""), l(n, 5, 0, e.filtering.reviewCount)
                }), (function(l, n) { l(n, 1, 1, [t.Hb(n, 2).isFocused, "large" === t.Hb(n, 2).nzSize, "small" === t.Hb(n, 2).nzSize, t.Hb(n, 2).nzDisabled, t.Hb(n, 3).isTooltipComponentVisible, t.Hb(n, 7).ngClassUntouched, t.Hb(n, 7).ngClassTouched, t.Hb(n, 7).ngClassPristine, t.Hb(n, 7).ngClassDirty, t.Hb(n, 7).ngClassValid, t.Hb(n, 7).ngClassInvalid, t.Hb(n, 7).ngClassPending]) }))
            }

            function tn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "nz-option", [], null, null, null, V.d, V.a)), t.ub(1, 573440, [
                    [12, 4]
                ], 0, Q.c, [], { nzLabel: [0, "nzLabel"], nzValue: [1, "nzValue"] }, null)], (function(l, n) { l(n, 1, 0, n.context.$implicit.itemName, n.context.$implicit.itemName) }), null)
            }

            function un(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 10, "nz-select", [
                    ["class", "search-item"]
                ], [
                    [2, "ant-select-lg", null],
                    [2, "ant-select-sm", null],
                    [2, "ant-select-enabled", null],
                    [2, "ant-select-no-arrow", null],
                    [2, "ant-select-disabled", null],
                    [2, "ant-select-allow-clear", null],
                    [2, "ant-select-open", null],
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"],
                    [null, "click"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "click" === n && (i = !1 !== t.Hb(l, 2).toggleDropDown() && i), "ngModelChange" === n && (i = !1 !== (u.filtering.department = e) && i), i
                }), V.f, V.c)), t.Mb(512, null, Q.i, Q.i, []), t.ub(2, 5488640, null, 2, Q.g, [t.E, Q.i, t.h, B.a, J.e, t.k, [8, null]], null, null), t.Nb(603979776, 12, { listOfNzOptionComponent: 1 }), t.Nb(603979776, 13, { listOfNzOptionGroupComponent: 1 }), t.Mb(1024, null, L.n, (function(l) { return [l] }), [Q.g]), t.ub(6, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { model: [0, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(8, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null), (l()(), t.kb(16777216, null, 0, 1, null, tn)), t.ub(10, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0), l(n, 6, 0, e.filtering.department), l(n, 10, 0, e.departments)
                }), (function(l, n) { l(n, 0, 1, ["large" === t.Hb(n, 2).nzSize, "small" === t.Hb(n, 2).nzSize, !t.Hb(n, 2).nzDisabled, !t.Hb(n, 2).nzShowArrow, t.Hb(n, 2).nzDisabled, t.Hb(n, 2).nzAllowClear, t.Hb(n, 2).open, t.Hb(n, 8).ngClassUntouched, t.Hb(n, 8).ngClassTouched, t.Hb(n, 8).ngClassPristine, t.Hb(n, 8).ngClassDirty, t.Hb(n, 8).ngClassValid, t.Hb(n, 8).ngClassInvalid, t.Hb(n, 8).ngClassPending]) }))
            }

            function an(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 5, "ui-provider-search-select", [
                    ["class", "search-item"],
                    ["job", "\u533b\u751f"]
                ], [
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"]
                ], (function(l, n, e) { var t = !0; return "ngModelChange" === n && (t = !1 !== (l.component.filtering.doctorId = e) && t), t }), K.b, K.a)), t.ub(1, 114688, null, 0, X.a, [Z.a, ll.a], { job: [0, "job"], isNeedUnknown: [1, "isNeedUnknown"] }, null), t.Mb(1024, null, L.n, (function(l) { return [l] }), [X.a]), t.ub(3, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { model: [0, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(5, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, "\u533b\u751f", !0), l(n, 3, 0, e.filtering.doctorId)
                }), (function(l, n) { l(n, 0, 0, t.Hb(n, 5).ngClassUntouched, t.Hb(n, 5).ngClassTouched, t.Hb(n, 5).ngClassPristine, t.Hb(n, 5).ngClassDirty, t.Hb(n, 5).ngClassValid, t.Hb(n, 5).ngClassInvalid, t.Hb(n, 5).ngClassPending) }))
            }

            function on(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "nz-option", [], null, null, null, V.d, V.a)), t.ub(1, 573440, [
                    [14, 4]
                ], 0, Q.c, [], { nzLabel: [0, "nzLabel"], nzValue: [1, "nzValue"] }, null)], (function(l, n) { l(n, 1, 0, n.context.$implicit.name, n.context.$implicit.id) }), null)
            }

            function rn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 10, "nz-select", [
                    ["class", "search-item"]
                ], [
                    [2, "ant-select-lg", null],
                    [2, "ant-select-sm", null],
                    [2, "ant-select-enabled", null],
                    [2, "ant-select-no-arrow", null],
                    [2, "ant-select-disabled", null],
                    [2, "ant-select-allow-clear", null],
                    [2, "ant-select-open", null],
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"],
                    [null, "click"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "click" === n && (i = !1 !== t.Hb(l, 2).toggleDropDown() && i), "ngModelChange" === n && (i = !1 !== (u.filtering.assistantId = e) && i), i
                }), V.f, V.c)), t.Mb(512, null, Q.i, Q.i, []), t.ub(2, 5488640, null, 2, Q.g, [t.E, Q.i, t.h, B.a, J.e, t.k, [8, null]], null, null), t.Nb(603979776, 14, { listOfNzOptionComponent: 1 }), t.Nb(603979776, 15, { listOfNzOptionGroupComponent: 1 }), t.Mb(1024, null, L.n, (function(l) { return [l] }), [Q.g]), t.ub(6, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { model: [0, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(8, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null), (l()(), t.kb(16777216, null, 0, 1, null, on)), t.ub(10, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0), l(n, 6, 0, e.filtering.assistantId), l(n, 10, 0, e.assistants)
                }), (function(l, n) { l(n, 0, 1, ["large" === t.Hb(n, 2).nzSize, "small" === t.Hb(n, 2).nzSize, !t.Hb(n, 2).nzDisabled, !t.Hb(n, 2).nzShowArrow, t.Hb(n, 2).nzDisabled, t.Hb(n, 2).nzAllowClear, t.Hb(n, 2).open, t.Hb(n, 8).ngClassUntouched, t.Hb(n, 8).ngClassTouched, t.Hb(n, 8).ngClassPristine, t.Hb(n, 8).ngClassDirty, t.Hb(n, 8).ngClassValid, t.Hb(n, 8).ngClassInvalid, t.Hb(n, 8).ngClassPending]) }))
            }

            function sn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "nz-option", [], null, null, null, V.d, V.a)), t.ub(1, 573440, [
                    [16, 4]
                ], 0, Q.c, [], { nzLabel: [0, "nzLabel"], nzValue: [1, "nzValue"] }, null)], (function(l, n) { l(n, 1, 0, n.context.$implicit.templateName, n.context.$implicit.templateCode) }), null)
            }

            function cn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "nz-option", [], null, null, null, V.d, V.a)), t.ub(1, 573440, [
                    [18, 4]
                ], 0, Q.c, [], { nzLabel: [0, "nzLabel"], nzValue: [1, "nzValue"] }, null)], (function(l, n) { l(n, 1, 0, n.context.$implicit, n.context.$implicit) }), null)
            }

            function dn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 30, "div", [
                    ["class", "more-search"]
                ], null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, en)), t.ub(2, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, un)), t.ub(4, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, an)), t.ub(6, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, rn)), t.ub(8, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.vb(9, 0, null, null, 10, "nz-select", [
                    ["class", "search-item"]
                ], [
                    [2, "ant-select-lg", null],
                    [2, "ant-select-sm", null],
                    [2, "ant-select-enabled", null],
                    [2, "ant-select-no-arrow", null],
                    [2, "ant-select-disabled", null],
                    [2, "ant-select-allow-clear", null],
                    [2, "ant-select-open", null],
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"],
                    [null, "click"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "click" === n && (i = !1 !== t.Hb(l, 11).toggleDropDown() && i), "ngModelChange" === n && (i = !1 !== (u.filtering.layoutTemplateCode = e) && i), i
                }), V.f, V.c)), t.Mb(512, null, Q.i, Q.i, []), t.ub(11, 5488640, null, 2, Q.g, [t.E, Q.i, t.h, B.a, J.e, t.k, [8, null]], null, null), t.Nb(603979776, 16, { listOfNzOptionComponent: 1 }), t.Nb(603979776, 17, { listOfNzOptionGroupComponent: 1 }), t.Mb(1024, null, L.n, (function(l) { return [l] }), [Q.g]), t.ub(15, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { model: [0, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(17, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null), (l()(), t.kb(16777216, null, 0, 1, null, sn)), t.ub(19, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null), (l()(), t.vb(20, 0, null, null, 10, "nz-select", [
                    ["class", "search-item"]
                ], [
                    [2, "ant-select-lg", null],
                    [2, "ant-select-sm", null],
                    [2, "ant-select-enabled", null],
                    [2, "ant-select-no-arrow", null],
                    [2, "ant-select-disabled", null],
                    [2, "ant-select-allow-clear", null],
                    [2, "ant-select-open", null],
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"],
                    [null, "click"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "click" === n && (i = !1 !== t.Hb(l, 22).toggleDropDown() && i), "ngModelChange" === n && (i = !1 !== (u.filtering.emrTag = e) && i), i
                }), V.f, V.c)), t.Mb(512, null, Q.i, Q.i, []), t.ub(22, 5488640, null, 2, Q.g, [t.E, Q.i, t.h, B.a, J.e, t.k, [8, null]], null, null), t.Nb(603979776, 18, { listOfNzOptionComponent: 1 }), t.Nb(603979776, 19, { listOfNzOptionGroupComponent: 1 }), t.Mb(1024, null, L.n, (function(l) { return [l] }), [Q.g]), t.ub(26, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { model: [0, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(28, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null), (l()(), t.kb(16777216, null, 0, 1, null, cn)), t.ub(30, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0, e.isReviewMode && e.isScrambled), l(n, 4, 0, !(e.isReviewMode && e.isDataMaskingEnabled || e.isMyList)), l(n, 6, 0, !(e.isReviewMode && e.isDataMaskingEnabled || e.isMyList)), l(n, 8, 0, !(e.isReviewMode && e.isDataMaskingEnabled || e.isMyList)), l(n, 11, 0), l(n, 15, 0, e.filtering.layoutTemplateCode), l(n, 19, 0, e.emrTemplates), l(n, 22, 0), l(n, 26, 0, e.filtering.emrTag), l(n, 30, 0, e.emrTags)
                }), (function(l, n) { l(n, 9, 1, ["large" === t.Hb(n, 11).nzSize, "small" === t.Hb(n, 11).nzSize, !t.Hb(n, 11).nzDisabled, !t.Hb(n, 11).nzShowArrow, t.Hb(n, 11).nzDisabled, t.Hb(n, 11).nzAllowClear, t.Hb(n, 11).open, t.Hb(n, 17).ngClassUntouched, t.Hb(n, 17).ngClassTouched, t.Hb(n, 17).ngClassPristine, t.Hb(n, 17).ngClassDirty, t.Hb(n, 17).ngClassValid, t.Hb(n, 17).ngClassInvalid, t.Hb(n, 17).ngClassPending]), l(n, 20, 1, ["large" === t.Hb(n, 22).nzSize, "small" === t.Hb(n, 22).nzSize, !t.Hb(n, 22).nzDisabled, !t.Hb(n, 22).nzShowArrow, t.Hb(n, 22).nzDisabled, t.Hb(n, 22).nzAllowClear, t.Hb(n, 22).open, t.Hb(n, 28).ngClassUntouched, t.Hb(n, 28).ngClassTouched, t.Hb(n, 28).ngClassPristine, t.Hb(n, 28).ngClassDirty, t.Hb(n, 28).ngClassValid, t.Hb(n, 28).ngClassInvalid, t.Hb(n, 28).ngClassPending]) }))
            }

            function bn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, "ui-grid", [], null, [
                    [null, "sortChange"],
                    [null, "pageIndexChange"],
                    [null, "pageSizeChange"]
                ], (function(l, n, e) {
                    var t = !0,
                        i = l.component;
                    return "sortChange" === n && (t = !1 !== i.onSortChange(e) && t), "pageIndexChange" === n && (t = !1 !== i.onPageIndexChange(e) && t), "pageSizeChange" === n && (t = !1 !== i.onPageSizeChange(e) && t), t
                }), nl.b, nl.a)), t.Mb(512, null, el.a, el.a, []), t.ub(2, 4964352, null, 0, tl.a, [t.k, el.a], { columnDefs: [0, "columnDefs"], columnMovable: [1, "columnMovable"], maxHeight: [2, "maxHeight"], rowData: [3, "rowData"], page: [4, "page"], pageSizeChangeable: [5, "pageSizeChangeable"], rowBuffer: [6, "rowBuffer"] }, { sortChange: "sortChange", pageIndexChange: "pageIndexChange", pageSizeChange: "pageSizeChange" })], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0, e.colDefs, !1, e.gridMaxHeight, null == e.emrPage ? null : e.emrPage.items, e.isReviewMode && e.isScrambled ? null : e.emrPage, !e.isReviewMode || !e.isScrambled, 100)
                }), null)
            }

            function mn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (l()(), t.Pb(1, null, [" / \u603b ", " \u4efd"]))], null, (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, null == e.emrPage ? null : e.emrPage.totalCount)
                }))
            }

            function pn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 5, "div", [
                    ["class", "clearfix hb-mt-8"]
                ], null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 4, "div", [
                    ["class", "pull-right"]
                ], null, null, null, null, null)), (l()(), t.vb(2, 0, null, null, 1, "span", [], null, null, null, null, null)), (l()(), t.Pb(3, null, ["\u62bd\u6837 ", " \u4efd"])), (l()(), t.kb(16777216, null, null, 1, null, mn)), t.ub(5, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 5, 0, e.emrPage.totalCount && e.showRandomTotalCount)
                }), (function(l, n) { l(n, 3, 0, n.component.emrPage.pageSize) }))
            }

            function gn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, "a", [
                    ["uiPermission", "patientMgmt.browse"]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.openPatientModal(l.context.$implicit) && t), t }), null, null)), t.ub(1, 4341760, null, 0, H.a, [t.k, D.a], { permissionCode: [0, "permissionCode"] }, null), (l()(), t.Pb(2, null, ["", ""])), (l()(), t.vb(3, 0, null, null, 2, "span", [
                    ["uiPermission", "patientMgmt.browse"]
                ], null, null, null, null, null)), t.ub(4, 4341760, null, 0, H.a, [t.k, D.a], { permissionCode: [0, "permissionCode"], removeIfAllowed: [1, "removeIfAllowed"] }, null), (l()(), t.Pb(5, null, ["", ""]))], (function(l, n) { l(n, 1, 0, "patientMgmt.browse"), l(n, 4, 0, "patientMgmt.browse", !0) }), (function(l, n) { l(n, 2, 0, n.context.$implicit.patientName), l(n, 5, 0, n.context.$implicit.patientName) }))
            }

            function hn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 16777216, null, null, 3, "a", [
                    ["class", "action-link"],
                    ["nz-dropdown", ""]
                ], null, null, null, null, null)), t.ub(1, 4866048, null, 0, il.e, [t.k, t.E, ul.d, B.a, [8, null],
                    [2, G.b], t.Q
                ], { nzDropdownMenu: [0, "nzDropdownMenu"] }, null), t.ub(2, 16384, null, 0, il.b, [t.k, t.E], null, null), (l()(), t.Pb(-1, null, ["\u67e5\u770b"])), (l()(), t.kb(0, null, null, 0))], (function(l, n) { l(n, 1, 0, t.Hb(n.parent, 4)) }), null)
            }

            function fn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "a", [
                    ["class", "action-link"]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.gotoPatientCenter(l.parent.context.$implicit.patientId) && t), t }), null, null)), (l()(), t.Pb(-1, null, ["\u67e5\u770b"]))], null, null)
            }

            function vn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "a", [
                    ["class", "action-link"]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.goToNewEmr(l.parent.parent.context.$implicit) && t), t }), null, null)), (l()(), t.Pb(-1, null, ["\u521b\u5efa"]))], null, null)
            }

            function Cn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "a", [
                    ["class", "action-link"]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.ignoreEmr(l.parent.parent.context.$implicit) && t), t }), null, null)), (l()(), t.Pb(-1, null, ["\u5ffd\u7565"]))], null, null)
            }

            function Mn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "a", [
                    ["class", "action-link"]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.goToEditEmr(l.parent.parent.context.$implicit) && t), t }), null, null)), (l()(), t.Pb(-1, null, ["\u6574\u6539"]))], null, null)
            }

            function Rn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, "a", [
                    ["class", "action-link"],
                    ["uiPermission", "patientMedicalRecord.reject"]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.openEmrDetailDrawer(l.parent.parent.context.$implicit, !1, !0) && t), t }), null, null)), t.ub(1, 4341760, null, 0, H.a, [t.k, D.a], { permissionCode: [0, "permissionCode"] }, null), (l()(), t.Pb(-1, null, ["\u8bc4\u4ef7"]))], (function(l, n) { l(n, 1, 0, "patientMedicalRecord.reject") }), null)
            }

            function wn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 8, null, null, null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, vn)), t.ub(2, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Cn)), t.ub(4, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Mn)), t.ub(6, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Rn)), t.ub(8, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(0, null, null, 0))], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0, "\u672a\u5199" === n.parent.context.$implicit.taskStatusStr), l(n, 4, 0, "\u672a\u5199" === n.parent.context.$implicit.taskStatusStr), l(n, 6, 0, "\u5f85\u6574\u6539" === n.parent.context.$implicit.taskStatusStr), l(n, 8, 0, "\u5f85\u8bc4\u5ba1" === n.parent.context.$implicit.taskStatusStr && e.isDirectReviewEnabled)
                }), null)
            }

            function kn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "a", [
                    ["class", "action-link"]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.openEmrDetailDrawer(l.parent.parent.context.$implicit) && t), t }), null, null)), (l()(), t.Pb(-1, null, ["\u8bc4\u4ef7"]))], null, null)
            }

            function yn(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, kn)), t.ub(2, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(0, null, null, 0))], (function(l, n) { l(n, 2, 0, "\u5f85\u8bc4\u5ba1" === n.parent.context.$implicit.taskStatusStr) }), null) }

            function Tn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 16777216, null, null, 3, "a", [
                    ["class", "action-link"],
                    ["nz-dropdown", ""]
                ], null, null, null, null, null)), t.ub(1, 4866048, null, 0, il.e, [t.k, t.E, ul.d, B.a, [8, null],
                    [2, G.b], t.Q
                ], { nzDropdownMenu: [0, "nzDropdownMenu"] }, null), t.ub(2, 16384, null, 0, il.b, [t.k, t.E], null, null), (l()(), t.Pb(-1, null, ["\u65e5\u5fd7"])), (l()(), t.kb(0, null, null, 0))], (function(l, n) { l(n, 1, 0, t.Hb(n.parent, 35)) }), null)
            }

            function Sn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "a", [
                    ["class", "action-link"]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.showReviewLog(l.parent.context.$implicit) && t), t }), null, null)), (l()(), t.Pb(-1, null, ["\u65e5\u5fd7"]))], null, null)
            }

            function xn(l) {
                return t.Rb(0, [(l()(), t.kb(16777216, null, null, 1, null, hn)), t.ub(1, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.vb(2, 16777216, null, null, 22, "nz-dropdown-menu", [], null, null, null, a.d, a.c)), t.Mb(512, null, il.j, il.j, []), t.ub(4, 1097728, [
                    ["viewMenu", 4]
                ], 0, il.h, [t.h, t.k, t.E, t.Q, il.j, [8, null]], null, null), t.Mb(1024, null, P.q, il.k, [
                    [4, t.q]
                ]), (l()(), t.vb(6, 0, null, 0, 18, "ul", [
                    ["nz-menu", ""],
                    ["nzSelectable", ""]
                ], null, null, null, null, null)), t.Mb(512, null, al.e, al.e, []), t.Mb(1024, null, P.t, al.f, [
                    [3, P.q], al.e
                ]), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(10, 1785856, null, 2, al.a, [t.k, P.t, P.G], { nzSelectable: [0, "nzSelectable"] }, null), t.Nb(603979776, 20, { listOfNzMenuItemDirective: 1 }), t.Nb(603979776, 21, { listOfNzSubMenuComponent: 1 }), (l()(), t.vb(13, 0, null, null, 5, "li", [
                    ["nz-menu-item", ""]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "click" === n && (i = !1 !== t.Hb(l, 15).clickMenuItem(e) && i), "click" === n && (i = !1 !== u.openEmrDetailDrawer(l.context.$implicit, !0) && i), i
                }), null, null)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(15, 1785856, [
                    [20, 4]
                ], 2, al.c, [P.G, P.t, [2, al.h], t.E, t.k, [2, N.o],
                    [2, N.q],
                    [2, N.n]
                ], null, null), t.Nb(603979776, 22, { listOfRouterLink: 1 }), t.Nb(603979776, 23, { listOfRouterLinkWithHref: 1 }), (l()(), t.Pb(-1, null, ["\u75c5\u5386"])), (l()(), t.vb(19, 0, null, null, 5, "li", [
                    ["nz-menu-item", ""]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "click" === n && (i = !1 !== t.Hb(l, 21).clickMenuItem(e) && i), "click" === n && (i = !1 !== u.gotoPatientCenter(l.context.$implicit.patientId) && i), i
                }), null, null)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(21, 1785856, [
                    [20, 4]
                ], 2, al.c, [P.G, P.t, [2, al.h], t.E, t.k, [2, N.o],
                    [2, N.q],
                    [2, N.n]
                ], null, null), t.Nb(603979776, 24, { listOfRouterLink: 1 }), t.Nb(603979776, 25, { listOfRouterLinkWithHref: 1 }), (l()(), t.Pb(-1, null, ["\u8be6\u60c5"])), (l()(), t.kb(16777216, null, null, 1, null, fn)), t.ub(26, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, wn)), t.ub(28, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, yn)), t.ub(30, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Tn)), t.ub(32, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.vb(33, 16777216, null, null, 22, "nz-dropdown-menu", [], null, null, null, a.d, a.c)), t.Mb(512, null, il.j, il.j, []), t.ub(35, 1097728, [
                    ["logMenu", 4]
                ], 0, il.h, [t.h, t.k, t.E, t.Q, il.j, [8, null]], null, null), t.Mb(1024, null, P.q, il.k, [
                    [4, t.q]
                ]), (l()(), t.vb(37, 0, null, 0, 18, "ul", [
                    ["nz-menu", ""],
                    ["nzSelectable", ""]
                ], null, null, null, null, null)), t.Mb(512, null, al.e, al.e, []), t.Mb(1024, null, P.t, al.f, [
                    [3, P.q], al.e
                ]), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(41, 1785856, null, 2, al.a, [t.k, P.t, P.G], { nzSelectable: [0, "nzSelectable"] }, null), t.Nb(603979776, 26, { listOfNzMenuItemDirective: 1 }), t.Nb(603979776, 27, { listOfNzSubMenuComponent: 1 }), (l()(), t.vb(44, 0, null, null, 5, "li", [
                    ["nz-menu-item", ""]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "click" === n && (i = !1 !== t.Hb(l, 46).clickMenuItem(e) && i), "click" === n && (i = !1 !== u.showEmrLog(l.context.$implicit) && i), i
                }), null, null)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(46, 1785856, [
                    [26, 4]
                ], 2, al.c, [P.G, P.t, [2, al.h], t.E, t.k, [2, N.o],
                    [2, N.q],
                    [2, N.n]
                ], null, null), t.Nb(603979776, 28, { listOfRouterLink: 1 }), t.Nb(603979776, 29, { listOfRouterLinkWithHref: 1 }), (l()(), t.Pb(-1, null, ["\u75c5\u5386\u65e5\u5fd7"])), (l()(), t.vb(50, 0, null, null, 5, "li", [
                    ["nz-menu-item", ""]
                ], null, [
                    [null, "click"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "click" === n && (i = !1 !== t.Hb(l, 52).clickMenuItem(e) && i), "click" === n && (i = !1 !== u.showReviewLog(l.context.$implicit) && i), i
                }), null, null)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(52, 1785856, [
                    [26, 4]
                ], 2, al.c, [P.G, P.t, [2, al.h], t.E, t.k, [2, N.o],
                    [2, N.q],
                    [2, N.n]
                ], null, null), t.Nb(603979776, 30, { listOfRouterLink: 1 }), t.Nb(603979776, 31, { listOfRouterLinkWithHref: 1 }), (l()(), t.Pb(-1, null, ["\u8d28\u8bc4\u65e5\u5fd7"])), (l()(), t.kb(16777216, null, null, 1, null, Sn)), t.ub(57, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(0, null, null, 0))], (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, "\u672a\u5199" !== n.context.$implicit.taskStatusStr && "\u5df2\u5ffd\u7565" !== n.context.$implicit.taskStatusStr), l(n, 10, 0, ""), l(n, 15, 0), l(n, 21, 0), l(n, 26, 0, "\u672a\u5199" === n.context.$implicit.taskStatusStr || "\u5df2\u5ffd\u7565" === n.context.$implicit.taskStatusStr), l(n, 28, 0, !e.isReviewMode), l(n, 30, 0, e.isReviewMode), l(n, 32, 0, "\u672a\u5199" !== n.context.$implicit.taskStatusStr && "\u5df2\u5ffd\u7565" !== n.context.$implicit.taskStatusStr), l(n, 41, 0, ""), l(n, 46, 0), l(n, 52, 0), l(n, 57, 0, "\u5df2\u5ffd\u7565" === n.context.$implicit.taskStatusStr)
                }), null)
            }

            function zn(l) {
                return t.Rb(0, [t.Nb(671088640, 1, { actionTmpl: 0 }), t.Nb(671088640, 2, { patientNameTmpl: 0 }), (l()(), t.kb(16777216, null, null, 1, null, Bl)), t.ub(3, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(0, [
                    ["tabActionTmpl", 2]
                ], null, 0, null, Kl)), (l()(), t.vb(5, 0, null, null, 30, "div", [
                    ["class", "search-form"]
                ], null, null, null, null, null)), (l()(), t.vb(6, 0, null, null, 10, "nz-select", [
                    ["class", "date-type-select"]
                ], [
                    [2, "ant-select-lg", null],
                    [2, "ant-select-sm", null],
                    [2, "ant-select-enabled", null],
                    [2, "ant-select-no-arrow", null],
                    [2, "ant-select-disabled", null],
                    [2, "ant-select-allow-clear", null],
                    [2, "ant-select-open", null],
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"],
                    [null, "click"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "click" === n && (i = !1 !== t.Hb(l, 8).toggleDropDown() && i), "ngModelChange" === n && (i = !1 !== (u.filtering.dateType = e) && i), i
                }), V.f, V.c)), t.Mb(512, null, Q.i, Q.i, []), t.ub(8, 5488640, null, 2, Q.g, [t.E, Q.i, t.h, B.a, J.e, t.k, [8, null]], null, null), t.Nb(603979776, 6, { listOfNzOptionComponent: 1 }), t.Nb(603979776, 7, { listOfNzOptionGroupComponent: 1 }), t.Mb(1024, null, L.n, (function(l) { return [l] }), [Q.g]), t.ub(12, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { isDisabled: [0, "isDisabled"], model: [1, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(14, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null), (l()(), t.kb(16777216, null, 0, 1, null, Xl)), t.ub(16, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null), (l()(), t.vb(17, 0, null, null, 5, "ui-time-range", [
                    ["style", "margin-left: -1px;"]
                ], [
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"],
                    [null, "yearMonthChange"]
                ], (function(l, n, e) {
                    var t = !0,
                        i = l.component;
                    return "ngModelChange" === n && (t = !1 !== (i.filtering.timeRange = e) && t), "ngModelChange" === n && (t = !1 !== i.onDateRangeChange() && t), "yearMonthChange" === n && (t = !1 !== i.onCalendarYearMonthChange(e) && t), t
                }), ol.b, ol.a)), t.ub(18, 114688, null, 0, rl.a, [], { allowClear: [0, "allowClear"], redDots: [1, "redDots"] }, { yearMonthChange: "yearMonthChange" }), t.Mb(1024, null, L.n, (function(l) { return [l] }), [rl.a]), t.ub(20, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { model: [0, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(22, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null), (l()(), t.vb(23, 0, null, null, 5, "button", [
                    ["nz-button", ""],
                    ["nzType", "link"]
                ], [
                    [1, "nz-wave", 0]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.toggleMoreSearch() && t), t }), A.c, A.a)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(25, 1818624, null, 1, G.a, [t.k, t.h, t.E, j.b, P.G, t.y, P.m, [2, P.i],
                    [2, U.a]
                ], { nzType: [0, "nzType"] }, null), t.Nb(603979776, 8, { listOfIconElement: 1 }), (l()(), t.Pb(-1, 0, ["\u66f4\u591a\u7b5b\u9009 "])), (l()(), t.vb(28, 0, null, 0, 0, "i", [
                    ["class", "iconfont icon-arrow-down"]
                ], null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, Zl)), t.ub(30, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, ln)), t.ub(32, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.vb(33, 0, null, null, 2, "div", [
                    ["class", "pull-right"]
                ], null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, nn)), t.ub(35, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, dn)), t.ub(37, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, bn)), t.ub(39, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, pn)), t.ub(41, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(0, [
                    [2, 2],
                    ["patientNameTmpl", 2]
                ], null, 0, null, gn)), (l()(), t.kb(0, [
                    [1, 2],
                    ["actionTmpl", 2]
                ], null, 0, null, xn))], (function(l, n) {
                    var e = n.component;
                    l(n, 3, 0, !e.isMyList), l(n, 8, 0), l(n, 12, 0, e.filtering.dateTypeDisabled, e.filtering.dateType), l(n, 16, 0, e.dateTypeOptions), l(n, 18, 0, !1, e.redDots), l(n, 20, 0, e.filtering.timeRange), l(n, 25, 0, "link"), l(n, 30, 0, !e.isReviewMode || !e.isScrambled), l(n, 32, 0, e.isReviewMode && e.isScrambled), l(n, 35, 0, !e.isReviewMode), l(n, 37, 0, e.filtering.isMoreSearchVisible), l(n, 39, 0, e.showGrid), l(n, 41, 0, e.isReviewMode && e.emrPage && e.isScrambled)
                }), (function(l, n) { l(n, 6, 1, ["large" === t.Hb(n, 8).nzSize, "small" === t.Hb(n, 8).nzSize, !t.Hb(n, 8).nzDisabled, !t.Hb(n, 8).nzShowArrow, t.Hb(n, 8).nzDisabled, t.Hb(n, 8).nzAllowClear, t.Hb(n, 8).open, t.Hb(n, 14).ngClassUntouched, t.Hb(n, 14).ngClassTouched, t.Hb(n, 14).ngClassPristine, t.Hb(n, 14).ngClassDirty, t.Hb(n, 14).ngClassValid, t.Hb(n, 14).ngClassInvalid, t.Hb(n, 14).ngClassPending]), l(n, 17, 0, t.Hb(n, 22).ngClassUntouched, t.Hb(n, 22).ngClassTouched, t.Hb(n, 22).ngClassPristine, t.Hb(n, 22).ngClassDirty, t.Hb(n, 22).ngClassValid, t.Hb(n, 22).ngClassInvalid, t.Hb(n, 22).ngClassPending), l(n, 23, 0, t.Hb(n, 25).nzWave) }))
            }

            function Fn(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "app-emr-list", [], null, null, null, zn, Yl)), t.ub(1, 4440064, null, 0, Al, [Gl.f, dl, dl, Il.a, Z.a, Nl.a, Hl.a, jl.h, Ul.g, N.a, yl.a, Ll.a, Vl.a, Ql.a], null, null)], (function(l, n) { l(n, 1, 0) }), null) }
            var In = t.rb("app-emr-list", Al, Fn, {}, {}, []),
                On = e("pcXu"),
                Pn = e("ZZhf");
            class Nn { constructor(l) { this.popoverRef = l } ngOnInit() { this.url = this.popoverRef.data.url } } class Hn { constructor(l) { this.popoverSvc = l } onClick(l) { l.target && this.picture && this.popoverSvc.open({ origin: l.target, content: Nn, data: { url: this.picture.filePath || this.picture.fullUrl }, borderRadiusCss: "8px 8px 0 0" }) } } class Dn { constructor() {} }
            var En = t.tb({ encapsulation: 0, styles: [".emr-free-named-picture-display-field[_ngcontent-%COMP%]   img[_ngcontent-%COMP%] {\n      width: 150px;\n      height: 120px;\n      cursor: pointer;\n    }"], data: {} });

            function _n(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, "div", [
                    ["class", "emr-free-named-picture-display-field"]
                ], null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "img", [
                    ["alt", ""]
                ], [
                    [8, "src", 4]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var i = !0; return "click" === n && (i = !1 !== t.Hb(l, 2).onClick(e) && i), i }), null, null)), t.ub(2, 16384, null, 0, Hn, [On.a], { picture: [0, "picture"] }, null)], (function(l, n) { l(n, 2, 0, n.component.picture) }), (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, e.picture.thumbnailUrl || e.picture.filePath)
                }))
            }

            function $n(l) {
                return t.Rb(0, [(l()(), t.kb(16777216, null, null, 1, null, _n)), t.ub(1, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, e.picture && e.picture.filePath)
                }), null)
            }
            class Ln { constructor() {} }
            var Vn = t.tb({ encapsulation: 0, styles: [".emr-free-picture-display-field[_ngcontent-%COMP%] {\n      display: flex;\n      flex-wrap: nowrap;\n    }\n\n    .emr-free-picture-display-field[_ngcontent-%COMP%]   img[_ngcontent-%COMP%] {\n      width: 150px;\n      height: 120px;\n      cursor: pointer;\n      margin-right: 10px;\n    }"], data: {} });

            function Qn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "img", [
                    ["alt", ""]
                ], [
                    [8, "src", 4]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var i = !0; return "click" === n && (i = !1 !== t.Hb(l, 2).onClick(e) && i), i }), null, null)), t.ub(2, 16384, null, 0, Hn, [On.a], { picture: [0, "picture"] }, null)], (function(l, n) { l(n, 2, 0, n.context.$implicit) }), (function(l, n) { l(n, 1, 0, n.context.$implicit.thumbnailUrl || n.context.$implicit.filePath) }))
            }

            function An(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, "div", [
                    ["class", "emr-free-picture-display-field"]
                ], null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, Qn)), t.ub(2, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null)], (function(l, n) { l(n, 2, 0, n.component.pictures) }), null)
            }

            function Gn(l) {
                return t.Rb(0, [(l()(), t.kb(16777216, null, null, 1, null, An)), t.ub(1, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, e.pictures && e.pictures.length > 0)
                }), null)
            }
            var jn = e("6AsL"),
                Un = e("R599"),
                Yn = e("cUpR");
            class Wn {
                constructor(l) { this.domSanitizer = l } transform(l) {
                    if (!l) return "";
                    const n = bl.isArray(l) ? l : l.split(","),
                        e = [];
                    return bl.forEach(n, (l, n) => {
                        const t = l.substr(0, 2),
                            i = l.substr(2);
                        let u = [];
                        i.length > 0 && (u = i.split("_")), e.push(`<div style="display: inline-block;">${n>0?",":""})${t}`), bl.forEach(u, (l, n) => { e.push(`\n          <div style="display: inline-block;top: -7px; position: relative; transform: scale(.8);">\n             ${l} ${n<u.length-1?",":""}\n          </div>\n        `) }), e.push("</div>")
                    }), this.domSanitizer.bypassSecurityTrustHtml(e.join(""))
                }
            }
            class qn { constructor() {} ngOnInit() {} }
            var Bn = t.tb({ encapsulation: 0, styles: [".emr-tooth-display-field[_ngcontent-%COMP%] {\n      width: 100%;\n    }\n\n    .emr-tooth-item[_ngcontent-%COMP%] {\n      display: flex;\n    }\n\n    .tooth-text[_ngcontent-%COMP%] {\n      min-width: 240px;\n      padding: 4px;\n      line-height: normal;\n      word-break: break-all;\n    }"], data: {} });

            function Jn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, "div", [
                    ["class", "tooth-text"]
                ], null, null, null, null, null)), (l()(), t.vb(1, 16777216, null, null, 1, "app-emr-tooth", [
                    ["style", "display: block; padding: 10px;"]
                ], null, null, null, jn.b, jn.a)), t.ub(2, 180224, null, 0, Un.a, [Yn.b, t.Q, t.k, ul.d, t.E], { disabled: [0, "disabled"], selectedToothCodes: [1, "selectedToothCodes"] }, null)], (function(l, n) { l(n, 2, 0, !0, n.parent.context.$implicit.fdiToothCodes) }), null)
            }

            function Kn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, "div", [
                    ["class", "tooth-text"]
                ], null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "span", [], [
                    [8, "innerHTML", 1]
                ], null, null, null, null)), t.Lb(2, 1)], null, (function(l, n) {
                    var e = t.Qb(n, 1, 0, l(n, 2, 0, t.Hb(n.parent.parent.parent, 0), n.parent.context.$implicit.fdiToothCodes));
                    l(n, 1, 0, e)
                }))
            }

            function Xn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, "div", [], null, null, null, null, null)), (l()(), t.Pb(-1, null, [" \u75c7\u72b6\uff1a"])), (l()(), t.vb(2, 0, null, null, 0, "span", [], [
                    [8, "innerHTML", 1]
                ], null, null, null, null))], null, (function(l, n) { l(n, 2, 0, n.parent.parent.context.$implicit[n.component.oralCheckFieldName]) }))
            }

            function Zn(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 3, "div", [
                    ["class", "record-text"]
                ], null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, Xn)), t.ub(2, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.vb(3, 0, null, null, 0, "div", [], [
                    [8, "innerHTML", 1]
                ], null, null, null, null))], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0, e.isAloneSaveOralCheckSymptom && e.oralCheckFieldName && n.parent.context.$implicit[e.oralCheckFieldName])
                }), (function(l, n) { l(n, 3, 0, n.parent.context.$implicit[n.component.recordTextFieldName]) }))
            }

            function le(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 6, "div", [
                    ["class", "emr-tooth-item"]
                ], null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, Jn)), t.ub(2, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Kn)), t.ub(4, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Zn)), t.ub(6, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0, e.field.allowEditTooth && !e.field.allowToothFdi), l(n, 4, 0, e.field.allowEditTooth && e.field.allowToothFdi), l(n, 6, 0, e.recordTextFieldName)
                }), null)
            }

            function ne(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, "div", [
                    ["class", "emr-tooth-display-field"]
                ], null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, le)), t.ub(2, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null)], (function(l, n) { l(n, 2, 0, n.component.field.fieldValue) }), null)
            }

            function ee(l) {
                return t.Rb(0, [t.Jb(0, Wn, [Yn.b]), (l()(), t.kb(16777216, null, null, 1, null, ne)), t.ub(2, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0, e.field && e.field.fieldValue && e.field.fieldValue.length > 0)
                }), null)
            }
            class te { constructor() {} ngOnInit() { this.pictures ? this.pictures.forEach(l => { l.appointmentStartTime && !l.appointmentStartTimeStr && (l.appointmentStartTimeStr = Tl(l.appointmentStartTime).format("YYYY/MM/DD")) }) : this.pictures = [] } }
            var ie = t.tb({ encapsulation: 0, styles: [".emr-medical-image[_ngcontent-%COMP%] {\n      margin-bottom: 5px;\n    }\n\n    .emr-medical-image[_ngcontent-%COMP%]   .emr-medical-image-control[_ngcontent-%COMP%] {\n      width: 180px;\n      height: 150px;\n      position: relative;\n      float: left;\n      box-sizing: border-box;\n      margin-right: 12px;\n    }\n\n    .emr-medical-image[_ngcontent-%COMP%]   .emr-medical-image-control[_ngcontent-%COMP%]   .emr-medical-image-item[_ngcontent-%COMP%] {\n      width: 180px;\n      height: 120px;\n      background-color: #FAFAFA;\n      border: 1px solid #e3e3e3;\n      border-radius:4px;\n      position: relative;\n      text-align: center;\n    }\n\n    .emr-medical-image[_ngcontent-%COMP%]   .emr-medical-image-control[_ngcontent-%COMP%]   .emr-medical-image-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%] {\n      max-width: 100%;\n      max-height: 100%;\n      vertical-align: middle;\n      height: 120px;\n    }\n\n    .emr-medical-image[_ngcontent-%COMP%]   .emr-medical-image-control[_ngcontent-%COMP%]   .emr-medical-image-item-footer[_ngcontent-%COMP%] {\n      font-size: 13px;\n      color: #575d6a;\n      height: 30px;\n      line-height: 30px;\n      overflow: hidden;\n      width: 100%;\n      white-space: nowrap;\n      text-overflow: ellipsis;\n    }"], data: {} });

            function ue(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 5, "div", [
                    ["class", "emr-medical-image-control"]
                ], null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 2, "div", [
                    ["class", "emr-medical-image-item"]
                ], null, null, null, null, null)), (l()(), t.vb(2, 0, null, null, 1, "img", [
                    ["alt", ""]
                ], [
                    [8, "src", 4]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var i = !0; return "click" === n && (i = !1 !== t.Hb(l, 3).onClick(e) && i), i }), null, null)), t.ub(3, 16384, null, 0, Hn, [On.a], { picture: [0, "picture"] }, null), (l()(), t.vb(4, 0, null, null, 1, "div", [
                    ["class", "emr-medical-image-item-footer"]
                ], null, null, null, null, null)), (l()(), t.Pb(5, null, ["", ""]))], (function(l, n) { l(n, 3, 0, n.context.$implicit) }), (function(l, n) { l(n, 2, 0, n.context.$implicit.thumbnailUrl), l(n, 5, 0, n.context.$implicit.appointmentStartTimeStr) }))
            }

            function ae(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, "div", [
                    ["class", "emr-medical-image"]
                ], null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, ue)), t.ub(2, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null)], (function(l, n) { l(n, 2, 0, n.component.pictures) }), null)
            }
            class oe { constructor(l, n) { this.elementRef = l, this.renderer = n, this.enableSetAttribute = !0 } ngOnInit() {} ngAfterViewInit() { this.elementRef && this.field && (this.setAttribute(), this.addClassName(), this.removeNode()) } setAttribute() { this.enableSetAttribute && (this.renderer.setAttribute(this.elementRef.nativeElement, "emr-field-name", this.field.fieldName), this.renderer.setAttribute(this.elementRef.nativeElement, "emr-field-type", this.field.fieldType)) } addClassName() { "group" === this.field.fieldType && this.field.level > 0 && this.renderer.addClass(this.elementRef.nativeElement, "emr-field-group-control"), "namedPictureUploader" === this.field.fieldType && this.field.level > 0 && this.renderer.addClass(this.elementRef.nativeElement, "emr-field-named-picture-control") } removeNode() { let l; "group" !== this.field.fieldType && (this.field.fieldValue ? bl.isArray(this.field.fieldValue) && 0 === this.field.fieldValue.length && (l = !0) : l = !0), l && this.elementRef.nativeElement.remove() } }
            var re = t.tb({
                encapsulation: 0,
                styles: [
                    [".emr-template-display-container[_ngcontent-%COMP%]{width:100%}.emr-template-display-container[_ngcontent-%COMP%]   .emr-patient-info-fields.hidden[_ngcontent-%COMP%]{display:none}.emr-template-display-container[_ngcontent-%COMP%]   .field-control[_ngcontent-%COMP%]{display:flex;font-size:14px}.emr-template-display-container[_ngcontent-%COMP%]   .field-control[_ngcontent-%COMP%]   .field-label[_ngcontent-%COMP%]{display:inline-block;font-weight:700;margin-right:6px;min-width:100px}.emr-template-display-container[_ngcontent-%COMP%]   .field-control[_ngcontent-%COMP%]   .field-content[_ngcontent-%COMP%]{display:inline-block}.emr-template-display-container[_ngcontent-%COMP%]   .field-control-level-0.field-control[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;padding:12px;border-bottom:1px solid #d8e0e7}.emr-template-display-container[_ngcontent-%COMP%]   .field-control-level-0.field-control[_ngcontent-%COMP%] > .field-label[_ngcontent-%COMP%]{flex:0 1 auto;width:100px;margin-right:0;display:inline-flex;flex-direction:column;justify-content:center}.emr-template-display-container[_ngcontent-%COMP%]   .field-control-level-1.field-control[_ngcontent-%COMP%]{margin-bottom:4px}.emr-template-display-container[_ngcontent-%COMP%]   .field-control-level-1[_ngcontent-%COMP%]:last-child{margin-bottom:0}.emr-template-display-container[_ngcontent-%COMP%]   .emr-field-group-control.field-control[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start}.emr-template-display-container[_ngcontent-%COMP%]   .emr-field-group-control.field-control[_ngcontent-%COMP%] > .field-content[_ngcontent-%COMP%]{padding:12px}.emr-template-display-container[_ngcontent-%COMP%]   .emr-field-named-picture-control.field-control[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start}.emr-template-display-container[_ngcontent-%COMP%]   .emr-field-named-picture-control.field-control[_ngcontent-%COMP%] > .field-label[_ngcontent-%COMP%]{text-align:center;margin-right:0;margin-bottom:4px}.emr-template-display-container[_ngcontent-%COMP%]   .emr-field-named-picture-control.field-control[_ngcontent-%COMP%] > .field-content[_ngcontent-%COMP%]{padding-right:12px}@media print{.emr-template-display-container[_ngcontent-%COMP%]   .emr-patient-info-fields[_ngcontent-%COMP%]{display:block!important}}"]
                ],
                data: {}
            });

            function se(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (l()(), t.Pb(1, null, ["\uff08", "\uff09"]))], null, (function(l, n) { l(n, 1, 0, n.component.patientInfo.department) })) }

            function ce(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 19, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 18, "div", [
                    ["class", "emr-patient-info-fields"]
                ], [
                    [2, "hidden", null]
                ], null, null, null, null)), (l()(), t.vb(2, 0, null, null, 4, "div", [
                    ["class", "field-control field-control-level-0"]
                ], null, null, null, null, null)), (l()(), t.vb(3, 0, null, null, 1, "div", [
                    ["class", "field-label field-label-level-0"]
                ], null, null, null, null, null)), (l()(), t.Pb(-1, null, ["\u60a3\u8005\uff1a"])), (l()(), t.vb(5, 0, null, null, 1, "div", [
                    ["class", "field-content field-content-level-0"]
                ], null, null, null, null, null)), (l()(), t.Pb(6, null, ["", " ", ""])), (l()(), t.vb(7, 0, null, null, 6, "div", [
                    ["class", "field-control field-control-level-0"]
                ], null, null, null, null, null)), (l()(), t.vb(8, 0, null, null, 1, "div", [
                    ["class", "field-label field-label-level-0"]
                ], null, null, null, null, null)), (l()(), t.Pb(-1, null, ["\u533b\u751f\uff1a"])), (l()(), t.vb(10, 0, null, null, 3, "div", [
                    ["class", "field-content field-content-level-0"]
                ], null, null, null, null, null)), (l()(), t.Pb(11, null, ["", " "])), (l()(), t.kb(16777216, null, null, 1, null, se)), t.ub(13, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.vb(14, 0, null, null, 5, "div", [
                    ["class", "field-control field-control-level-0"]
                ], null, null, null, null, null)), (l()(), t.vb(15, 0, null, null, 1, "div", [
                    ["class", "field-label field-label-level-0"]
                ], null, null, null, null, null)), (l()(), t.Pb(-1, null, ["\u4e0a\u6b21\u4fee\u6539\u65f6\u95f4\uff1a"])), (l()(), t.vb(17, 0, null, null, 2, "div", [
                    ["class", "field-content field-content-level-0"]
                ], null, null, null, null, null)), (l()(), t.Pb(18, null, ["", ""])), t.Jb(0, zl.a, [])], (function(l, n) { l(n, 13, 0, n.component.patientInfo.department) }), (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, e.hidePatientInfo), l(n, 6, 0, e.patientInfo.patientName, e.patientInfo.privateId), l(n, 11, 0, e.patientInfo.doctorName), l(n, 18, 0, t.Qb(n, 18, 0, t.Hb(n, 19).transform(e.patientInfo.recordUpdatedTime, "ymdhm")))
                }))
            }

            function de(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 0, null, null, null, null, null, null, null))], null, null) }

            function be(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 5, "div", [
                    ["class", "emr-template-display-container"]
                ], null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, ce)), t.ub(2, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 2, null, de)), t.ub(4, 540672, null, 0, O.u, [t.Q], { ngTemplateOutletContext: [0, "ngTemplateOutletContext"], ngTemplateOutlet: [1, "ngTemplateOutlet"] }, null), t.Kb(5, { $implicit: 0 })], (function(l, n) {
                    var e = n.component;
                    l(n, 2, 0, e.patientInfo);
                    var i = l(n, 5, 0, e.emrTemplateDisplaySvc.fields);
                    l(n, 4, 0, i, t.Hb(n.parent, 2))
                }), null)
            }

            function me(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 3, "div", [
                    ["class", "field-label"]
                ], null, null, null, null, null)), t.Mb(512, null, O.F, O.G, [t.r, t.s, t.k, t.E]), t.ub(2, 278528, null, 0, O.k, [O.F], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), (l()(), t.Pb(3, null, ["", ""]))], (function(l, n) { l(n, 2, 0, "field-label", "field-label-level-" + n.parent.context.$implicit.level) }), (function(l, n) { l(n, 3, 0, n.parent.context.$implicit.fieldName) }))
            }

            function pe(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 0, null, null, null, null, null, null, null))], null, null) }

            function ge(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 3, null, null, null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 2, null, pe)), t.ub(2, 540672, null, 0, O.u, [t.Q], { ngTemplateOutletContext: [0, "ngTemplateOutletContext"], ngTemplateOutlet: [1, "ngTemplateOutlet"] }, null), t.Kb(3, { $implicit: 0 }), (l()(), t.kb(0, null, null, 0))], (function(l, n) {
                    var e = l(n, 3, 0, n.parent.context.$implicit.children);
                    l(n, 2, 0, e, t.Hb(n.parent.parent.parent, 2))
                }), null)
            }

            function he(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "ui-emr-free-named-picture-display-field", [], null, null, null, $n, En)), t.ub(2, 49152, null, 0, Dn, [], { picture: [0, "picture"] }, null)], (function(l, n) { l(n, 2, 0, n.parent.parent.context.$implicit.fieldValue) }), null) }

            function fe(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "ui-emr-free-picture-display-field", [], null, null, null, Gn, Vn)), t.ub(2, 49152, null, 0, Ln, [], { pictures: [0, "pictures"] }, null)], (function(l, n) { l(n, 2, 0, n.parent.parent.context.$implicit.fieldValue) }), null) }

            function ve(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "ui-emr-tooth-display-field", [
                    ["recordTextFieldName", "cure"]
                ], null, null, null, ee, Bn)), t.ub(2, 114688, null, 0, qn, [], { field: [0, "field"], recordTextFieldName: [1, "recordTextFieldName"] }, null)], (function(l, n) { l(n, 2, 0, n.parent.parent.context.$implicit, "cure") }), null)
            }

            function Ce(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "ui-emr-tooth-display-field", [
                    ["recordTextFieldName", "planContent"]
                ], null, null, null, ee, Bn)), t.ub(2, 114688, null, 0, qn, [], { field: [0, "field"], recordTextFieldName: [1, "recordTextFieldName"] }, null)], (function(l, n) { l(n, 2, 0, n.parent.parent.context.$implicit, "planContent") }), null)
            }

            function Me(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "ui-emr-tooth-display-field", [
                    ["recordTextFieldName", "diagnose"]
                ], null, null, null, ee, Bn)), t.ub(2, 114688, null, 0, qn, [], { field: [0, "field"], recordTextFieldName: [1, "recordTextFieldName"] }, null)], (function(l, n) { l(n, 2, 0, n.parent.parent.context.$implicit, "diagnose") }), null)
            }

            function Re(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "ui-emr-tooth-display-field", [
                    ["recordTextFieldName", "description"]
                ], null, null, null, ee, Bn)), t.ub(2, 114688, null, 0, qn, [], { field: [0, "field"], recordTextFieldName: [1, "recordTextFieldName"] }, null)], (function(l, n) { l(n, 2, 0, n.parent.parent.context.$implicit, "description") }), null)
            }

            function we(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "ui-emr-tooth-display-field", [
                    ["recordTextFieldName", "content"]
                ], null, null, null, ee, Bn)), t.ub(2, 114688, null, 0, qn, [], { field: [0, "field"], recordTextFieldName: [1, "recordTextFieldName"] }, null)], (function(l, n) { l(n, 2, 0, n.parent.parent.context.$implicit, "content") }), null)
            }

            function ke(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "ui-emr-tooth-display-field", [
                    ["oralCheckFieldName", "observationName"],
                    ["recordTextFieldName", "description"]
                ], null, null, null, ee, Bn)), t.ub(2, 114688, null, 0, qn, [], { field: [0, "field"], recordTextFieldName: [1, "recordTextFieldName"], oralCheckFieldName: [2, "oralCheckFieldName"], isAloneSaveOralCheckSymptom: [3, "isAloneSaveOralCheckSymptom"] }, null)], (function(l, n) { l(n, 2, 0, n.parent.parent.context.$implicit, "description", "observationName", n.component.emrTemplateDisplaySvc.isAloneSaveOralCheckSymptom) }), null)
            }

            function ye(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 1, "ui-emr-medical-image-display-field", [], null, null, null, ae, ie)), t.ub(2, 114688, null, 0, te, [], { pictures: [0, "pictures"] }, null)], (function(l, n) { l(n, 2, 0, n.parent.parent.context.$implicit.fieldValue) }), null) }

            function Te(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, null, null, null, null, null, null, null)), (l()(), t.Pb(1, null, ["", ""]))], null, (function(l, n) { l(n, 1, 0, n.parent.parent.context.$implicit.fieldValue) })) }

            function Se(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 22, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 21, null, null, null, null, null, null, null)), t.ub(2, 16384, null, 0, O.r, [], { ngSwitch: [0, "ngSwitch"] }, null), (l()(), t.kb(16777216, null, null, 1, null, he)), t.ub(4, 278528, null, 0, O.s, [t.Q, t.M, O.r], { ngSwitchCase: [0, "ngSwitchCase"] }, null), (l()(), t.kb(16777216, null, null, 1, null, fe)), t.ub(6, 278528, null, 0, O.s, [t.Q, t.M, O.r], { ngSwitchCase: [0, "ngSwitchCase"] }, null), (l()(), t.kb(16777216, null, null, 1, null, ve)), t.ub(8, 278528, null, 0, O.s, [t.Q, t.M, O.r], { ngSwitchCase: [0, "ngSwitchCase"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Ce)), t.ub(10, 278528, null, 0, O.s, [t.Q, t.M, O.r], { ngSwitchCase: [0, "ngSwitchCase"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Me)), t.ub(12, 278528, null, 0, O.s, [t.Q, t.M, O.r], { ngSwitchCase: [0, "ngSwitchCase"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Re)), t.ub(14, 278528, null, 0, O.s, [t.Q, t.M, O.r], { ngSwitchCase: [0, "ngSwitchCase"] }, null), (l()(), t.kb(16777216, null, null, 1, null, we)), t.ub(16, 278528, null, 0, O.s, [t.Q, t.M, O.r], { ngSwitchCase: [0, "ngSwitchCase"] }, null), (l()(), t.kb(16777216, null, null, 1, null, ke)), t.ub(18, 278528, null, 0, O.s, [t.Q, t.M, O.r], { ngSwitchCase: [0, "ngSwitchCase"] }, null), (l()(), t.kb(16777216, null, null, 1, null, ye)), t.ub(20, 278528, null, 0, O.s, [t.Q, t.M, O.r], { ngSwitchCase: [0, "ngSwitchCase"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Te)), t.ub(22, 16384, null, 0, O.t, [t.Q, t.M, O.r], null, null), (l()(), t.kb(0, null, null, 0))], (function(l, n) { l(n, 2, 0, n.parent.context.$implicit.fieldType), l(n, 4, 0, "namedPictureUploader"), l(n, 6, 0, "pictureUploader"), l(n, 8, 0, "medicalRecord_CureRecord"), l(n, 10, 0, "medicalRecord_TreatmentPlan"), l(n, 12, 0, "medicalRecord_DiagnoseRecord"), l(n, 14, 0, "medicalRecord_RadiologyCheckRecord"), l(n, 16, 0, "medicalRecord_TreatmentAdvice"), l(n, 18, 0, "medicalRecord_OralCheckRecord"), l(n, 20, 0, "medicalRecord_Imaging") }), null) }

            function xe(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 13, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 12, "div", [
                    ["class", "field-control"]
                ], null, null, null, null, null)), t.Mb(512, null, O.F, O.G, [t.r, t.s, t.k, t.E]), t.ub(3, 278528, null, 0, O.k, [O.F], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), t.ub(4, 4276224, null, 0, oe, [t.k, t.E], { field: [0, "field"] }, null), (l()(), t.kb(16777216, null, null, 1, null, me)), t.ub(6, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.vb(7, 0, null, null, 6, "div", [
                    ["class", "field-content"]
                ], null, null, null, null, null)), t.Mb(512, null, O.F, O.G, [t.r, t.s, t.k, t.E]), t.ub(9, 278528, null, 0, O.k, [O.F], { klass: [0, "klass"], ngClass: [1, "ngClass"] }, null), (l()(), t.kb(16777216, null, null, 1, null, ge)), t.ub(11, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Se)), t.ub(13, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null)], (function(l, n) { l(n, 3, 0, "field-control", "field-control-level-" + n.context.$implicit.level), l(n, 4, 0, n.context.$implicit), l(n, 6, 0, n.context.$implicit.fieldName), l(n, 9, 0, "field-content", "field-content-level-" + n.context.$implicit.level), l(n, 11, 0, n.context.$implicit.children && n.context.$implicit.children.length > 0), l(n, 13, 0, !n.context.$implicit.children || 0 === n.context.$implicit.children.length) }), null)
            }

            function ze(l) { return t.Rb(0, [(l()(), t.kb(16777216, null, null, 1, null, xe)), t.ub(1, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null), (l()(), t.kb(0, null, null, 0))], (function(l, n) { l(n, 1, 0, n.context.$implicit) }), null) }

            function Fe(l) {
                return t.Rb(0, [(l()(), t.kb(16777216, null, null, 1, null, be)), t.ub(1, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(0, [
                    ["fieldListTpl", 2]
                ], null, 0, null, ze))], (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, e.emrTemplateDisplaySvc.fields && e.emrTemplateDisplaySvc.fields.length > 0)
                }), null)
            }
            var Ie = e("px0D"),
                Oe = e("iXb4"),
                Pe = e("bse0"),
                Ne = t.tb({
                    encapsulation: 0,
                    styles: [
                        [".emr-details-container[_ngcontent-%COMP%]{display:flex;width:calc(100% + 24px);height:calc(100% + 24px);margin:-12px;padding:8px;background-color:#f5f6f7}.emr-details-container[_ngcontent-%COMP%]   .emr-detail-view[_ngcontent-%COMP%]{height:100%;flex:2;margin-right:8px;padding:12px;background-color:#fff;border-radius:4px}.emr-details-container[_ngcontent-%COMP%]   .emr-comment-wrapper[_ngcontent-%COMP%]{height:100%;flex:1;background-color:#fff;border-radius:4px}.emr-details-container[_ngcontent-%COMP%]   .emr-comment-wrapper[_ngcontent-%COMP%]   .emr-comment-title[_ngcontent-%COMP%]{padding:12px;font-size:13px;font-weight:500;color:#1d222a;border-bottom:1px solid #d9d9d9}.emr-details-container[_ngcontent-%COMP%]   .emr-comment-wrapper[_ngcontent-%COMP%]   .emr-comment-form[_ngcontent-%COMP%]{padding:12px}.emr-details-container[_ngcontent-%COMP%]   .container-footer[_ngcontent-%COMP%]{text-align:right;padding:8px}"]
                    ],
                    data: {}
                });

            function He(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "app-emr-template-display", [], null, null, null, Fe, re)), t.ub(1, 638976, [
                    [1, 4],
                    ["emrDisplay", 4]
                ], 0, wl, [Ml, dl, t.k], { medicalRecordId: [0, "medicalRecordId"], hidePatientInfo: [1, "hidePatientInfo"], patientInfo: [2, "patientInfo"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 1, 0, e.medicalRecordReport.id, e.isDataMaskingEnabled, e.emrTemplatePatientInfo)
                }), null)
            }

            function De(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 6, "textarea", [
                    ["nz-input", ""],
                    ["placeholder", "\u8bf7\u5728\u8fd9\u91cc\u8f93\u5165\u70b9\u8bc4\u610f\u89c1"],
                    ["rows", "4"]
                ], [
                    [2, "ant-input-disabled", null],
                    [2, "ant-input-lg", null],
                    [2, "ant-input-sm", null],
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"],
                    [null, "input"],
                    [null, "blur"],
                    [null, "compositionstart"],
                    [null, "compositionend"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "input" === n && (i = !1 !== t.Hb(l, 2)._handleInput(e.target.value) && i), "blur" === n && (i = !1 !== t.Hb(l, 2).onTouched() && i), "compositionstart" === n && (i = !1 !== t.Hb(l, 2)._compositionStart() && i), "compositionend" === n && (i = !1 !== t.Hb(l, 2)._compositionEnd(e.target.value) && i), "ngModelChange" === n && (i = !1 !== (u.notes = e) && i), i
                }), null, null)), t.ub(1, 16384, null, 0, Ie.b, [t.E, t.k], null, null), t.ub(2, 16384, null, 0, L.d, [t.E, t.k, [2, L.a]], null, null), t.Mb(1024, null, L.n, (function(l) { return [l] }), [L.d]), t.ub(4, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { model: [0, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(6, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null)], (function(l, n) { l(n, 4, 0, n.component.notes) }), (function(l, n) { l(n, 0, 0, t.Hb(n, 1).disabled, "large" === t.Hb(n, 1).nzSize, "small" === t.Hb(n, 1).nzSize, t.Hb(n, 6).ngClassUntouched, t.Hb(n, 6).ngClassTouched, t.Hb(n, 6).ngClassPristine, t.Hb(n, 6).ngClassDirty, t.Hb(n, 6).ngClassValid, t.Hb(n, 6).ngClassInvalid, t.Hb(n, 6).ngClassPending) }))
            }

            function Ee(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "span", [
                    ["class", "hb-text-danger"]
                ], null, null, null, null, null)), (l()(), t.Pb(-1, null, ["\u672a\u901a\u8fc7"]))], null, null)
            }

            function _e(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "span", [
                    ["class", "hb-text-success"]
                ], null, null, null, null, null)), (l()(), t.Pb(-1, null, ["\u5df2\u901a\u8fc7"]))], null, null)
            }

            function $e(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 13, "div", [], null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 10, "div", [
                    ["class", "clearfix hb-mb-4"]
                ], null, null, null, null, null)), (l()(), t.vb(2, 0, null, null, 6, "div", [
                    ["class", "pull-left"]
                ], null, null, null, null, null)), (l()(), t.vb(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (l()(), t.Pb(4, null, ["\u8d28\u8bc4\u4eba\uff1a", "\xa0|\xa0"])), (l()(), t.kb(16777216, null, null, 1, null, Ee)), t.ub(6, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, _e)), t.ub(8, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.vb(9, 0, null, null, 2, "div", [
                    ["class", "pull-right hb-text-light"]
                ], null, null, null, null, null)), (l()(), t.Pb(10, null, [" ", " "])), t.Jb(0, zl.a, []), (l()(), t.vb(12, 0, null, null, 1, "div", [
                    ["class", "notes"]
                ], null, null, null, null, null)), (l()(), t.Pb(13, null, [" ", " "]))], (function(l, n) {
                    var e = n.component;
                    l(n, 6, 0, "\u6253\u56de" === e.lastReviewLog.operationType), l(n, 8, 0, "\u901a\u8fc7" === e.lastReviewLog.operationType)
                }), (function(l, n) {
                    var e = n.component;
                    l(n, 4, 0, e.lastReviewLog.recordCreatedName), l(n, 10, 0, t.Qb(n, 10, 0, t.Hb(n, 11).transform(e.lastReviewLog.recordCreatedTime, "ymdhm"))), l(n, 13, 0, e.lastReviewLog.notes)
                }))
            }

            function Le(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 5, "div", [
                    ["class", "pull-left"]
                ], null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 4, "button", [
                    ["nz-button", ""],
                    ["nzType", "default"]
                ], [
                    [1, "nz-wave", 0]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.print() && t), t }), A.c, A.a)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(3, 1818624, null, 1, G.a, [t.k, t.h, t.E, j.b, P.G, t.y, P.m, [2, P.i],
                    [2, U.a]
                ], { nzType: [0, "nzType"] }, null), t.Nb(603979776, 2, { listOfIconElement: 1 }), (l()(), t.Pb(-1, 0, ["\u6253\u5370"]))], (function(l, n) { l(n, 3, 0, "default") }), (function(l, n) { l(n, 1, 0, t.Hb(n, 3).nzWave) }))
            }

            function Ve(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 10, null, null, null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 4, "button", [
                    ["class", "hb-mr-8"],
                    ["nz-button", ""],
                    ["nzType", "default"]
                ], [
                    [1, "nz-wave", 0]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.reject() && t), t }), A.c, A.a)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(3, 1818624, null, 1, G.a, [t.k, t.h, t.E, j.b, P.G, t.y, P.m, [2, P.i],
                    [2, U.a]
                ], { nzType: [0, "nzType"] }, null), t.Nb(603979776, 3, { listOfIconElement: 1 }), (l()(), t.Pb(-1, 0, ["\u4e0d\u901a\u8fc7"])), (l()(), t.vb(6, 0, null, null, 4, "button", [
                    ["nz-button", ""],
                    ["nzType", "primary"]
                ], [
                    [1, "nz-wave", 0]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.accept() && t), t }), A.c, A.a)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(8, 1818624, null, 1, G.a, [t.k, t.h, t.E, j.b, P.G, t.y, P.m, [2, P.i],
                    [2, U.a]
                ], { nzType: [0, "nzType"] }, null), t.Nb(603979776, 4, { listOfIconElement: 1 }), (l()(), t.Pb(-1, 0, ["\u901a\u8fc7"]))], (function(l, n) { l(n, 3, 0, "default"), l(n, 8, 0, "primary") }), (function(l, n) { l(n, 1, 0, t.Hb(n, 3).nzWave), l(n, 6, 0, t.Hb(n, 8).nzWave) }))
            }

            function Qe(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 4, "button", [
                    ["nz-button", ""],
                    ["nzType", "primary"]
                ], [
                    [1, "nz-wave", 0]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.nextEmr() && t), t }), A.c, A.a)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(2, 1818624, null, 1, G.a, [t.k, t.h, t.E, j.b, P.G, t.y, P.m, [2, P.i],
                    [2, U.a]
                ], { nzType: [0, "nzType"] }, null), t.Nb(603979776, 5, { listOfIconElement: 1 }), (l()(), t.Pb(-1, 0, ["\u4e0b\u4e00\u4e2a\u75c5\u5386"]))], (function(l, n) { l(n, 2, 0, "primary") }), (function(l, n) { l(n, 0, 0, t.Hb(n, 2).nzWave) }))
            }

            function Ae(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 2, null, null, null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, Qe)), t.ub(2, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(0, null, null, 0))], (function(l, n) { l(n, 2, 0, n.component.nextEmrAvailable) }), null) }

            function Ge(l) {
                return t.Rb(0, [t.Nb(671088640, 1, { emrDisplay: 0 }), (l()(), t.vb(1, 0, null, null, 21, "div", [
                    ["class", "emr-details-container"]
                ], null, null, null, null, null)), (l()(), t.vb(2, 0, null, null, 4, "div", [
                    ["class", "emr-detail-view"]
                ], null, null, null, null, null)), (l()(), t.vb(3, 0, null, null, 3, "perfect-scrollbar", [], [
                    [2, "ps-show-limits", null],
                    [2, "ps-show-active", null]
                ], null, null, Oe.b, Oe.a)), t.ub(4, 507904, null, 0, Pe.b, [t.y, t.h, t.A], null, null), (l()(), t.kb(16777216, null, 0, 1, null, He)), t.ub(6, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.vb(7, 0, null, null, 7, "div", [
                    ["class", "emr-comment-wrapper"]
                ], null, null, null, null, null)), (l()(), t.vb(8, 0, null, null, 1, "div", [
                    ["class", "emr-comment-title"]
                ], null, null, null, null, null)), (l()(), t.Pb(-1, null, ["\u70b9\u8bc4\u610f\u89c1"])), (l()(), t.vb(10, 0, null, null, 4, "div", [
                    ["class", "emr-comment-form"]
                ], null, null, null, null, null)), (l()(), t.kb(16777216, null, null, 1, null, De)), t.ub(12, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, $e)), t.ub(14, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.vb(15, 0, null, null, 7, "div", [
                    ["class", "container-footer"],
                    ["nzDrawerFooter", ""]
                ], null, null, null, null, null)), t.ub(16, 4210688, null, 0, Gl.b, [t.k, t.E], null, null), (l()(), t.kb(16777216, null, null, 1, null, Le)), t.ub(18, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Ve)), t.ub(20, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null), (l()(), t.kb(16777216, null, null, 1, null, Ae)), t.ub(22, 16384, null, 0, O.n, [t.Q, t.M], { ngIf: [0, "ngIf"] }, null)], (function(l, n) {
                    var e = n.component;
                    l(n, 4, 0), l(n, 6, 0, e.medicalRecordReport), l(n, 12, 0, 0 === e.reviewResult && !e.readOnly), l(n, 14, 0, (0 !== e.reviewResult || e.readOnly) && e.lastReviewLog), l(n, 18, 0, e.reviewResult || e.readOnly), l(n, 20, 0, !e.reviewResult && !e.readOnly), l(n, 22, 0, e.reviewResult && !e.readOnly)
                }), (function(l, n) { l(n, 3, 0, t.Hb(n, 4).autoPropagation, t.Hb(n, 4).scrollIndicators) }))
            }

            function je(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "app-emr-details", [], null, null, null, Ge, Ne)), t.ub(1, 114688, null, 0, xl, [Gl.d, dl, Ul.g, kl.a, yl.a], null, null)], (function(l, n) { l(n, 1, 0) }), null) }
            var Ue = t.rb("app-emr-details", xl, je, { readOnly: "readOnly", medicalRecordReport: "medicalRecordReport", nextMedicalRecordReports: "nextMedicalRecordReports", isDataMaskingEnabled: "isDataMaskingEnabled" }, {}, []),
                Ye = t.tb({ encapsulation: 0, styles: [".emr-display-popover-img[_ngcontent-%COMP%] {\n      width: 500px;\n      height: 400px;\n    }"], data: {} });

            function We(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "div", [
                    ["style", "padding: 12px;"]
                ], null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 0, "img", [
                    ["class", "emr-display-popover-img"]
                ], [
                    [8, "src", 4]
                ], null, null, null, null))], null, (function(l, n) { l(n, 1, 0, n.component.url) }))
            }

            function qe(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "ui-emr-display-popover-img", [], null, null, null, We, Ye)), t.ub(1, 114688, null, 0, Nn, [Pn.a], null, null)], (function(l, n) { l(n, 1, 0) }), null) }
            var Be = t.rb("ui-emr-display-popover-img", Nn, qe, {}, {}, []),
                Je = t.tb({
                    encapsulation: 0,
                    styles: [
                        [".warning[_ngcontent-%COMP%]{margin:0 4px;color:#fff;background-color:#ffb426}"]
                    ],
                    data: {}
                });

            function Ke(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (l()(), t.Pb(1, null, ["", "\uff1a", ""])), (l()(), t.vb(2, 0, null, null, 1, "span", [
                    ["class", "warning"]
                ], null, null, null, null, null)), (l()(), t.Pb(-1, null, ["\u53d8\u66f4\u4e3a"])), (l()(), t.Pb(4, null, [" ", " "]))], null, (function(l, n) { l(n, 1, 0, null == n.parent.context.$implicit ? null : n.parent.context.$implicit.field, (null == n.parent.context.$implicit ? null : n.parent.context.$implicit.oldValue) || "\u65e0"), l(n, 4, 0, (null == n.parent.context.$implicit ? null : n.parent.context.$implicit.newValue) || "\u65e0") }))
            }

            function Xe(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 9, null, null, null, null, null, null, null)), (l()(), t.vb(1, 16777216, null, null, 6, "span", [
                    ["nz-tooltip", ""]
                ], [
                    [2, "ant-tooltip-open", null]
                ], null, null, null, null)), t.ub(2, 4931584, null, 0, Y.e, [t.k, t.Q, t.j, t.E, [2, Y.c],
                    [8, null]
                ], { specificTitle: [0, "specificTitle"], directiveNameTitle: [1, "directiveNameTitle"] }, null), (l()(), t.vb(3, 0, null, null, 1, "span", [], null, null, null, null, null)), (l()(), t.Pb(4, null, ["", "\uff1a", ""])), (l()(), t.vb(5, 0, null, null, 1, "span", [
                    ["class", "warning"]
                ], null, null, null, null, null)), (l()(), t.Pb(-1, null, ["\u53d8\u66f4\u4e3a"])), (l()(), t.Pb(7, null, [" ", " "])), (l()(), t.vb(8, 0, null, null, 0, "br", [], null, null, null, null, null)), (l()(), t.kb(0, [
                    ["tooltip", 2]
                ], null, 0, null, Ke))], (function(l, n) { l(n, 2, 0, t.Hb(n, 9), "") }), (function(l, n) { l(n, 1, 0, t.Hb(n, 2).isTooltipComponentVisible), l(n, 4, 0, null == n.context.$implicit ? null : n.context.$implicit.field, (null == n.context.$implicit ? null : n.context.$implicit.oldValue) || "\u65e0"), l(n, 7, 0, (null == n.context.$implicit ? null : n.context.$implicit.newValue) || "\u65e0") }))
            }

            function Ze(l) { return t.Rb(0, [(l()(), t.kb(16777216, null, null, 1, null, Xe)), t.ub(1, 278528, null, 0, O.m, [t.Q, t.M, t.r], { ngForOf: [0, "ngForOf"] }, null), (l()(), t.kb(0, null, null, 0))], (function(l, n) { l(n, 1, 0, n.context.$implicit.changeFields.changeFields) }), null) }

            function lt(l) {
                return t.Rb(0, [t.Nb(671088640, 1, { contentTemp: 0 }), (l()(), t.vb(1, 0, null, null, 4, "div", [
                    ["class", "operation-log"]
                ], null, null, null, null, null)), (l()(), t.vb(2, 0, null, null, 3, "ui-grid", [], null, null, null, nl.b, nl.a)), t.Mb(512, null, el.a, el.a, []), t.ub(4, 4964352, [
                    ["grid", 4]
                ], 0, tl.a, [t.k, el.a], { columnDefs: [0, "columnDefs"], maxHeight: [1, "maxHeight"], minHeight: [2, "minHeight"], rowData: [3, "rowData"] }, null), t.Jb(131072, O.b, [t.h]), (l()(), t.kb(0, [
                    [1, 2],
                    ["contentTemp", 2]
                ], null, 0, null, Ze))], (function(l, n) {
                    var e = n.component;
                    l(n, 4, 0, e.tableColDefs, 350, 350, t.Qb(n, 4, 3, t.Hb(n, 5).transform(e.logList$)))
                }), null)
            }

            function nt(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "app-emr-log-modal", [], null, null, null, lt, Je)), t.ub(1, 4308992, null, 0, El, [kl.a], null, null)], (function(l, n) { l(n, 1, 0) }), null) }
            var et = t.rb("app-emr-log-modal", El, nt, { id: "id", type: "type" }, {}, []),
                tt = t.tb({
                    encapsulation: 0,
                    styles: [
                        [""]
                    ],
                    data: {}
                });

            function it(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 10, "div", [
                    ["class", "footer"]
                ], null, null, null, null, null)), (l()(), t.vb(1, 0, null, null, 4, "button", [
                    ["nz-button", ""],
                    ["nzType", "default"]
                ], [
                    [1, "nz-wave", 0]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.cancel() && t), t }), A.c, A.a)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(3, 1818624, null, 1, G.a, [t.k, t.h, t.E, j.b, P.G, t.y, P.m, [2, P.i],
                    [2, U.a]
                ], { nzType: [0, "nzType"] }, null), t.Nb(603979776, 1, { listOfIconElement: 1 }), (l()(), t.Pb(-1, 0, ["\u53d6\u6d88"])), (l()(), t.vb(6, 0, null, null, 4, "button", [
                    ["nz-button", ""],
                    ["nzType", "primary"]
                ], [
                    [1, "nz-wave", 0]
                ], [
                    [null, "click"]
                ], (function(l, n, e) { var t = !0; return "click" === n && (t = !1 !== l.component.save() && t), t }), A.c, A.a)), t.Mb(512, null, P.G, P.G, [t.F]), t.ub(8, 1818624, null, 1, G.a, [t.k, t.h, t.E, j.b, P.G, t.y, P.m, [2, P.i],
                    [2, U.a]
                ], { nzType: [0, "nzType"] }, null), t.Nb(603979776, 2, { listOfIconElement: 1 }), (l()(), t.Pb(-1, 0, ["\u786e\u5b9a"]))], (function(l, n) { l(n, 3, 0, "default"), l(n, 8, 0, "primary") }), (function(l, n) { l(n, 1, 0, t.Hb(n, 3).nzWave), l(n, 6, 0, t.Hb(n, 8).nzWave) }))
            }

            function ut(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 6, "textarea", [
                    ["nz-input", ""],
                    ["placeholder", "\u8bf7\u5728\u8fd9\u91cc\u8f93\u5165\u5ffd\u7565\u539f\u56e0"],
                    ["rows", "4"]
                ], [
                    [2, "ant-input-disabled", null],
                    [2, "ant-input-lg", null],
                    [2, "ant-input-sm", null],
                    [2, "ng-untouched", null],
                    [2, "ng-touched", null],
                    [2, "ng-pristine", null],
                    [2, "ng-dirty", null],
                    [2, "ng-valid", null],
                    [2, "ng-invalid", null],
                    [2, "ng-pending", null]
                ], [
                    [null, "ngModelChange"],
                    [null, "input"],
                    [null, "blur"],
                    [null, "compositionstart"],
                    [null, "compositionend"]
                ], (function(l, n, e) {
                    var i = !0,
                        u = l.component;
                    return "input" === n && (i = !1 !== t.Hb(l, 2)._handleInput(e.target.value) && i), "blur" === n && (i = !1 !== t.Hb(l, 2).onTouched() && i), "compositionstart" === n && (i = !1 !== t.Hb(l, 2)._compositionStart() && i), "compositionend" === n && (i = !1 !== t.Hb(l, 2)._compositionEnd(e.target.value) && i), "ngModelChange" === n && (i = !1 !== (u.notes = e) && i), i
                }), null, null)), t.ub(1, 16384, null, 0, Ie.b, [t.E, t.k], null, null), t.ub(2, 16384, null, 0, L.d, [t.E, t.k, [2, L.a]], null, null), t.Mb(1024, null, L.n, (function(l) { return [l] }), [L.d]), t.ub(4, 671744, null, 0, L.s, [
                    [8, null],
                    [8, null],
                    [8, null],
                    [6, L.n]
                ], { model: [0, "model"] }, { update: "ngModelChange" }), t.Mb(2048, null, L.o, null, [L.s]), t.ub(6, 16384, null, 0, L.p, [
                    [4, L.o]
                ], null, null), (l()(), t.kb(0, null, null, 1, null, it)), t.ub(8, 16384, null, 0, jl.e, [
                    [2, jl.g], t.M
                ], null, null)], (function(l, n) { l(n, 4, 0, n.component.notes) }), (function(l, n) { l(n, 0, 0, t.Hb(n, 1).disabled, "large" === t.Hb(n, 1).nzSize, "small" === t.Hb(n, 1).nzSize, t.Hb(n, 6).ngClassUntouched, t.Hb(n, 6).ngClassTouched, t.Hb(n, 6).ngClassPristine, t.Hb(n, 6).ngClassDirty, t.Hb(n, 6).ngClassValid, t.Hb(n, 6).ngClassInvalid, t.Hb(n, 6).ngClassPending) }))
            }

            function at(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "app-emr-review-ignore-modal", [], null, null, null, ut, tt)), t.ub(1, 114688, null, 0, Dl, [jl.g, Ul.g], null, null)], (function(l, n) { l(n, 1, 0) }), null) }
            var ot = t.rb("app-emr-review-ignore-modal", Dl, at, {}, {}, []),
                rt = t.tb({
                    encapsulation: 0,
                    styles: [
                        [".warning[_ngcontent-%COMP%]{margin:0 4px;color:#fff;background-color:#ffb426}"]
                    ],
                    data: {}
                });

            function st(l) {
                return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "span", [], null, null, null, null, null)), (l()(), t.Pb(1, null, ["", ""])), (l()(), t.vb(2, 0, null, null, 1, "span", [
                    ["class", "hb-ml-4 hb-mr-4 warning"]
                ], null, null, null, null, null)), (l()(), t.Pb(-1, null, ["\u53d8\u66f4\u4e3a"])), (l()(), t.vb(4, 0, null, null, 1, "span", [], null, null, null, null, null)), (l()(), t.Pb(5, null, ["", ""]))], null, (function(l, n) { l(n, 1, 0, (null == n.context.$implicit ? null : null == n.context.$implicit.emrStateChange ? null : n.context.$implicit.emrStateChange.oldValue) || "\u65e0"), l(n, 5, 0, (null == n.context.$implicit ? null : null == n.context.$implicit.emrStateChange ? null : n.context.$implicit.emrStateChange.newValue) || "\u65e0") }))
            }

            function ct(l) {
                return t.Rb(0, [t.Nb(671088640, 1, { contentTemp: 0 }), (l()(), t.vb(1, 0, null, null, 3, "div", [
                    ["class", "operation-log"]
                ], null, null, null, null, null)), (l()(), t.vb(2, 0, null, null, 2, "ui-grid", [], null, null, null, nl.b, nl.a)), t.Mb(512, null, el.a, el.a, []), t.ub(4, 4964352, [
                    ["grid", 4]
                ], 0, tl.a, [t.k, el.a], { columnDefs: [0, "columnDefs"], rowData: [1, "rowData"] }, null), (l()(), t.kb(0, [
                    [1, 2],
                    ["contentTemp", 2]
                ], null, 0, null, st))], (function(l, n) {
                    var e = n.component;
                    l(n, 4, 0, e.tableColDefs, e.logList)
                }), null)
            }

            function dt(l) { return t.Rb(0, [(l()(), t.vb(0, 0, null, null, 1, "app-emr-review-modal", [], null, null, null, ct, rt)), t.ub(1, 4308992, null, 0, _l, [kl.a], null, null)], (function(l, n) { l(n, 1, 0) }), null) }
            var bt = t.rb("app-emr-review-modal", _l, dt, { id: "id", type: "type" }, {}, []),
                mt = e("IP0z"),
                pt = e("Mc5n"),
                gt = e("hOhj"),
                ht = e("TSSN"),
                ft = e("v1Dh"),
                vt = e("66zS"),
                Ct = e("5Izy"),
                Mt = e("yTpB"),
                Rt = e("zMNK"),
                wt = e("r19J"),
                kt = e("anqq"),
                yt = e("IYs4"),
                Tt = e("EcpC"),
                St = e("rJp6"),
                xt = e("kS4m"),
                zt = e("mW00"),
                Ft = e("CYS+"),
                It = e("WPSl"),
                Ot = e("YdS3"),
                Pt = e("wQFA"),
                Nt = e("3ZFI"),
                Ht = e("oBm0"),
                Dt = e("A7zk"),
                Et = e("YRt3"),
                _t = e("lAiz"),
                $t = e("ce6n"),
                Lt = e("SBNi"),
                Vt = e("7QIX"),
                Qt = e("tYkK"),
                At = e("wf2+"),
                Gt = e("nHXS"),
                jt = e("fb/r"),
                Ut = e("zTFG"),
                Yt = e("JK0T"),
                Wt = e("0CZq"),
                qt = e("qU0y"),
                Bt = e("vZsH"),
                Jt = e("SHEi"),
                Kt = e("FPpa"),
                Xt = e("RVNi"),
                Zt = e("NDed"),
                li = e("5A4h"),
                ni = e("N2O2"),
                ei = e("ozKM"),
                ti = e("OvZZ"),
                ii = e("z+yo"),
                ui = e("haRT"),
                ai = e("XFzh"),
                oi = e("p+Sl"),
                ri = e("HhpN"),
                si = e("SN7N"),
                ci = e("fwnu"),
                di = e("VbP7"),
                bi = e("gaRz"),
                mi = e("e15G"),
                pi = e("ZQLD"),
                gi = e("P6FZ"),
                hi = e("anuX"),
                fi = e("PybA"),
                vi = e("4zvT"),
                Ci = e("gCCl"),
                Mi = e("t4Lp"),
                Ri = e("36EL"),
                wi = e("PCNd");
            const ki = { isMyList: !0 };
            e.d(n, "EmrModuleNgFactory", (function() { return yi }));
            var yi = t.sb(u, [], (function(l) {
                return t.Eb([t.Fb(512, t.j, t.cb, [
                    [8, [a.a, a.b, o.a, r.a, s.a, c.a, d.a, b.a, m.a, p.a, g.a, h.a, f.a, v.a, C.a, M.a, R.a, w.a, k.a, y.a, T.a, S.a, x.a, z.a, In, Ue, Be, et, ot, bt]],
                    [3, t.j], t.w
                ]), t.Fb(4608, O.p, O.o, [t.t, [2, O.K]]), t.Fb(5120, P.y, P.L, [O.d, [3, P.y]]), t.Fb(4608, ul.d, ul.d, [ul.k, ul.f, t.j, ul.i, ul.g, t.q, t.y, O.d, mt.b, [2, O.i]]), t.Fb(5120, ul.l, ul.m, [ul.d]), t.Fb(4608, L.y, L.y, []), t.Fb(4608, j.c, j.c, []), t.Fb(4608, L.e, L.e, []), t.Fb(4608, pt.g, pt.g, [O.d, t.y, gt.j, pt.i]), t.Fb(4608, ht.h, ht.g, []), t.Fb(4608, ht.c, ht.f, []), t.Fb(4608, ht.j, ht.d, []), t.Fb(4608, ht.b, ht.a, []), t.Fb(4608, ht.l, ht.l, [ht.m, ht.h, ht.c, ht.j, ht.b, ht.n, ht.o]), t.Fb(4608, Ml, Ml, [Z.a, vl.a, Cl.a]), t.Fb(1073742336, O.c, O.c, []), t.Fb(1073742336, B.b, B.b, []), t.Fb(1073742336, ft.b, ft.b, []), t.Fb(1073742336, vt.b, vt.b, []), t.Fb(1073742336, P.j, P.j, []), t.Fb(1073742336, Ct.a, Ct.a, []), t.Fb(1073742336, Mt.c, Mt.c, []), t.Fb(1073742336, mt.a, mt.a, []), t.Fb(1073742336, Rt.e, Rt.e, []), t.Fb(1073742336, gt.g, gt.g, []), t.Fb(1073742336, ul.h, ul.h, []), t.Fb(1073742336, L.x, L.x, []), t.Fb(1073742336, L.l, L.l, []), t.Fb(1073742336, P.v, P.v, []), t.Fb(1073742336, wt.b, wt.b, []), t.Fb(1073742336, kt.b, kt.b, []), t.Fb(1073742336, yt.a, yt.a, []), t.Fb(1073742336, j.d, j.d, []), t.Fb(1073742336, Tt.b, Tt.b, []), t.Fb(1073742336, P.I, P.I, []), t.Fb(1073742336, G.c, G.c, []), t.Fb(1073742336, P.w, P.w, []), t.Fb(1073742336, al.d, al.d, []), t.Fb(1073742336, il.i, il.i, []), t.Fb(1073742336, il.a, il.a, []), t.Fb(1073742336, il.f, il.f, []), t.Fb(1073742336, St.a, St.a, []), t.Fb(1073742336, J.c, J.c, []), t.Fb(1073742336, xt.d, xt.d, []), t.Fb(1073742336, zt.c, zt.c, []), t.Fb(1073742336, Pe.d, Pe.d, []), t.Fb(1073742336, Ft.c, Ft.c, []), t.Fb(1073742336, Q.h, Q.h, []), t.Fb(1073742336, It.f, It.f, []), t.Fb(1073742336, Ot.a, Ot.a, []), t.Fb(1073742336, Pt.a, Pt.a, []), t.Fb(1073742336, P.r, P.r, []), t.Fb(1073742336, Y.b, Y.b, []), t.Fb(1073742336, Ie.d, Ie.d, []), t.Fb(1073742336, Nt.b, Nt.b, []), t.Fb(1073742336, Ht.a, Ht.a, []), t.Fb(1073742336, Dt.a, Dt.a, []), t.Fb(1073742336, Et.b, Et.b, []), t.Fb(1073742336, _t.g, _t.g, []), t.Fb(1073742336, _t.b, _t.b, []), t.Fb(1073742336, $t.a, $t.a, []), t.Fb(1073742336, Lt.b, Lt.b, []), t.Fb(1073742336, P.x, P.x, []), t.Fb(1073742336, jl.i, jl.i, []), t.Fb(1073742336, jl.d, jl.d, []), t.Fb(1073742336, jl.f, jl.f, []), t.Fb(1073742336, Gl.e, Gl.e, []), t.Fb(1073742336, Gl.c, Gl.c, []), t.Fb(1073742336, Vt.a, Vt.a, []), t.Fb(1073742336, Qt.b, Qt.b, []), t.Fb(1073742336, At.g, At.g, []), t.Fb(1073742336, q.b, q.b, []), t.Fb(1073742336, Gt.e, Gt.e, []), t.Fb(1073742336, jt.b, jt.b, []), t.Fb(1073742336, Ut.d, Ut.d, []), t.Fb(1073742336, Yt.a, Yt.a, []), t.Fb(1073742336, Ul.h, Ul.h, []), t.Fb(1073742336, Ul.f, Ul.f, []), t.Fb(1073742336, Wt.f, Wt.f, []), t.Fb(1073742336, Wt.e, Wt.e, []), t.Fb(1073742336, qt.a, qt.a, []), t.Fb(1073742336, Bt.b, Bt.b, []), t.Fb(1073742336, Jt.b, Jt.b, []), t.Fb(1073742336, Kt.b, Kt.b, []), t.Fb(1073742336, Xt.b, Xt.b, []), t.Fb(1073742336, Zt.a, Zt.a, []), t.Fb(1073742336, li.a, li.a, []), t.Fb(1073742336, ni.a, ni.a, []), t.Fb(1073742336, ei.a, ei.a, []), t.Fb(1073742336, ti.a, ti.a, []), t.Fb(1073742336, ii.a, ii.a, []), t.Fb(1073742336, _.b, _.b, []), t.Fb(1073742336, ui.b, ui.b, []), t.Fb(1073742336, I.g, I.g, []), t.Fb(1073742336, ai.b, ai.b, []), t.Fb(1073742336, oi.a, oi.a, []), t.Fb(1073742336, P.C, P.C, []), t.Fb(1073742336, ri.a, ri.a, []), t.Fb(1073742336, si.b, si.b, []), t.Fb(1073742336, ci.b, ci.b, []), t.Fb(1073742336, P.o, P.o, []), t.Fb(1073742336, di.a, di.a, []), t.Fb(1073742336, bi.d, bi.d, []), t.Fb(1073742336, mi.a, mi.a, []), t.Fb(1073742336, N.r, N.r, [
                    [2, N.w],
                    [2, N.n]
                ]), t.Fb(1073742336, L.u, L.u, []), t.Fb(1073742336, pi.a, pi.a, []), t.Fb(1073742336, ht.i, ht.i, []), t.Fb(1073742336, gi.c, gi.c, []), t.Fb(1073742336, pt.h, pt.h, []), t.Fb(1073742336, hi.a, hi.a, []), t.Fb(1073742336, fi.c, fi.c, []), t.Fb(1073742336, vi.a, vi.a, []), t.Fb(1073742336, Ci.a, Ci.a, []), t.Fb(1073742336, Mi.a, Mi.a, []), t.Fb(1073742336, Ri.a, Ri.a, []), t.Fb(1073742336, wi.a, wi.a, []), t.Fb(1073742336, u, u, [i.a, t.j]), t.Fb(256, Pe.a, { suppressScrollX: !0 }, []), t.Fb(256, Ul.b, { nzAnimate: !0, nzDuration: 3e3, nzMaxStack: 7, nzPauseOnHover: !0, nzTop: 24 }, []), t.Fb(256, Wt.b, { nzTop: "24px", nzBottom: "24px", nzPlacement: "topRight", nzDuration: 4500, nzMaxStack: 7, nzPauseOnHover: !0, nzAnimate: !0 }, []), t.Fb(256, ht.o, void 0, []), t.Fb(256, ht.n, void 0, []), t.Fb(1024, N.l, (function() {
                    return [
                        [{ path: "", redirectTo: "list", pathMatch: "full" }, { path: "list", component: Al }, { path: "my-list", component: Al, data: ki }]
                    ]
                }), [])])
            }))
        }
    }
]);